Easily create a changelog for any GitHub repo by listing all merged PRs between two releases, or between one release and the current time.
- Clone the repo.
- Copy the supplied
.env.examplefile to.env. - Install dependencies:
npm i(within the repo folder).
In the .env file:
- Change the value of
GITHUB_API_TOKENto your personal GitHub token. - Verify and if necessary amend
DEPENDENCY_AUTHORSby adding any dependency bot you may use. (Note: if you are not using any, this setting won't have any effect)
- Run the script (refer to the inline help for further information on command line arguments):
node index.js -o <owner> -r <repo> -p <previous Release> [-c <current-release>]- Copy the output and paste it into the release on GitHub. PR tags will be automatically converted into links. Once the release has been saved, you can copy/paste to other places like P2 and the changelog will be complete with links.