github intuit/auto v7.10.0

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

Release Notes

From #610

This PR also introduces the changelog.addToBody hook. This can be used to add whatever extra content you want to a changelog.

The following adds a random GIF from giphy to each new changelog.

auto.hooks.onCreateChangelog.tapPromise('Giphy', changelog =>
  changelog.hooks.renderChangelogLine.tapPromise(
    'Giphy',
    async (notes, commits) => {
      const response = await fetch(`https://api.giphy.com/v1/gifs/random?api_key=${process.env.GIPHY_KEY}`);
      const json = await response.json();
      const { data: gif } = json;

      return [...notes, `![${gif.title}](${gif.url})\n`]
    }
  );
);

🚀 Enhancement

  • @auto-it/core, @auto-it/crates, @auto-it/first-time-contributor

⚠️ Pushed to master

Authors: 1

Don't miss a new auto release

NewReleases is sending notifications on new releases.