Skip to content

About

Generates release notes from merged pull request since last release

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

44 Commits

Folders and files

Repository files navigation

release-notes

Build Status LICENSE Go Report Card

Forked from https://github.com/corneliusweig/release-notes

Generates a markdown changelog of merged pull requests since last release. It consists of sections New Features, Fixes, Updates & Refactors, and Docs updates based on the PRs being labelled with release/new-feature, release/fixes, releases/refactor and release/doc-updates respectively

The script uses the GitHub API to retrieve a list of all merged pull requests since the last release. The found pull requests are then printed as markdown changelog with their commit summary and a link to the pull request on GitHub.

The idea and original implementation of this script is due to Bálint Pató (@balopat) while working on minikube and Skaffold.

Examples

The binary expects two parameters:

  1. The GitHub organization which your repository is part of.
  2. The repository name.

For example:

./release-notes GoogleContainerTools skaffold

which will output

New Features:
* add github pull request template [#2894](https://github.com/googlecontainertools/skaffold/pull/2894)


Fixes:
* Add Jib-Gradle support for Kotlin buildscripts [#2914](https://github.com/googlecontainertools/skaffold/pull/2914)


Updates & Refactors:
* Add missing T.Helper() in testutil.Check* as required [#2913](https://github.com/googlecontainertools/skaffold/pull/2913)


Docs updates:
* Move buildpacks tutorial to buildpacks example README [#2908](https://github.com/googlecontainertools/skaffold/pull/2908)
...

Options

--token

Specify a personal Github Token if you are hitting a rate limit anonymously (see https://github.com/settings/tokens). Otherwise, set the environment variable GITHUB_TOKEN (already set when running in a Github Action)

--since

The tag of the last release up to which PRs should be collected (one of any, patch, minor, major, or a valid semver). Defaults to 'patch'.

For example:

2.3.4-alpha.1+1234 2.3.4-alpha.1 2.3.4 2.3.0 2.0.0
any true true true true true
patch false false true true true
minor false false false true true
major false false false false true

Installation

go get github.com/gsquared94/release-notes

Alternately,

  • For Linux
curl -Lo release-notes.tar.gz https://github.com/gsquared94/release-notes/releases/download/v0.1.2/release-notes-linux-amd64.tar.gz
tar -xvf release-notes.tar.gz
mv release-notes /usr/local/bin
  • For MacOS
curl -Lo release-notes.tar.gz https://github.com/gsquared94/release-notes/releases/download/v0.1.2/release-notes-darwin-amd64.tar.gz
tar -xvf release-notes.tar.gz
mv release-notes /usr/local/bin

About

Generates release notes from merged pull request since last release

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

⌂ 换网址