First Time Contributor Plugin
Thank first time contributors for their work right in your release notes.
Installation
This plugin is not included with the auto
CLI installed via NPM. To install:
npm i --save-dev @auto-it/first-time-contributor
yarn add -D @auto-it/first-time-contributor
Usage
Simply add the plugins to your auto configuration.
{
"plugins": ["first-time-contributor"]
}
v7.10.0 (Fri Oct 18 2019)
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
@auto-it/first-time-contributor
Authors: 1