github intuit/auto v7.0.0

latest releases: v11.3.0, v11.2.1, v11.2.0...
6 years ago

Release Notes

From #420

old afterRelease

auto.hooks.afterRelease.tap('MyPlugin', async (version, commits, releaseNotes) => {
  // do something
});

new afterRelease

auto.hooks.afterRelease.tap( 'MyPlugin', async ({ version, commits, releaseNotes, response }) => {
    // do something
);

From #408

Previously a user would have the following configuration in their .autorc:

{
  "jira": "https://url-to-jira"
}

this should be changed to:

{
  "plugins": [
    ["jira", { "url": "https://url-to-jira" }],
    // or
    ["jira", "https://url-to-jira"]
  ]
}

Plugin Authors

If you are a plugin author that uses the renderChangelogLine hook you must change your usage.

Before it was a bail hook. meaning on 1 plugin could effect the changelog message. The first to return would be the message.

auto.hooks.onCreateChangelog.tapPromise('Stars', changelog =>
  changelog.hooks.renderChangelogLine.tapPromise(
    'Stars',
    async (commits, renderLine) =>
      commits.map(commit => `${renderLine(commit).replace('-', ':star:')}\n`)
  );
);

Now it is a waterfall hook. Each plugin has the chance to change the commit message in some way, but it must return the args for the next plugin in the waterfall.

auto.hooks.onCreateChangelog.tapPromise('Stars', changelog =>
  changelog.hooks.renderChangelogLine.tapPromise(
    'Stars',
    async (commit, line) =>
      [commit, `${line.replace('-', ':star:')}\n`]
  );
);

From #407

Previously a user would have the following configuration in their .autorc:

{
  "slack": "https://url-to-slack"
}

this should be changed to:

{
  "plugins": [
    ["slack", { "url": "https://url-to-your-slack-hook.com" }],
    // or
    ["slack", "https://url-to-your-slack-hook.com"]
  ]
}

💥 Breaking Change

  • Factor out filter accounts plugin #409 (@hipstersmoothie)
  • Move jira functionality to plugin #408 (@hipstersmoothie)
  • Move slack functionality to a plugin #407 (@hipstersmoothie)
  • auto, @auto-it/core, @auto-it/chrome, @auto-it/conventional-commits, @auto-it/jira, @auto-it/npm, @auto-it/omit-commits, @auto-it/omit-release-notes, @auto-it/released, @auto-it/slack, @auto-it/twitter, @auto-it/upload-assets
  • auto, @auto-it/core, @auto-it/npm, @auto-it/omit-commits, @auto-it/omit-release-notes, @auto-it/released, @auto-it/slack
  • auto, @auto-it/core, @auto-it/chrome, @auto-it/conventional-commits, @auto-it/jira, @auto-it/npm, @auto-it/omit-commits, @auto-it/omit-release-notes, @auto-it/released, @auto-it/slack, @auto-it/twitter, @auto-it/upload-assets
  • @auto-it/core, @auto-it/omit-commits
  • @auto-it/core, @auto-it/released, @auto-it/slack
  • auto, @auto-it/core
  • auto, @auto-it/core, @auto-it/chrome, @auto-it/conventional-commits, @auto-it/jira, @auto-it/npm, @auto-it/released, @auto-it/slack

🚀 Enhancement

  • @auto-it/core, @auto-it/omit-commits, @auto-it/omit-release-notes
  • @auto-it/core, @auto-it/released, @auto-it/slack, @auto-it/twitter, @auto-it/upload-assets
  • @auto-it/core, @auto-it/upload-assets
  • auto, @auto-it/core

🐛 Bug Fix

Co-Authored-By: Justin Bennett zephraph@gmail.com (@hipstersmoothie)

🏠 Internal

🔩 Dependency Updates

⚠️ Pushed to master

Authors: 2

Don't miss a new auto release

NewReleases is sending notifications on new releases.