Skip to content

v7.10.0

Choose a tag to compare

@adierkens adierkens released this 18 Oct 18:57
· 4387 commits to main since this release

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