Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto releaser #11

Merged
merged 4 commits into from
Jun 25, 2018
Merged

Auto releaser #11

merged 4 commits into from
Jun 25, 2018

Conversation

paulfantom
Copy link
Collaborator

What's new:

  • add changelog
  • add an auto-release script with automatic CHANGELOG generation

Needed:

  • GitHub token (scope: repo.public_repo) from @atosatto assigned to an environment variable GH_TOKEN in travis CI. Token needs to be secret.

This will automatically update CHANGELOG.md file (included in this PR) after every successful merged PR. Also this allows to cut a new release when a keyword in merge commit was detected, after that it also synchronizes GitHub release with changelog (examples: https://github.com/cloudalchemy/ansible-prometheus/releases). Keywords are (brackets ARE important):

  • for a MAJOR version: [major] and [breaking change]
  • for a MINOR version: [minor], [feature], and [feat]
  • for a PATCH version: [patch] and [fix]

Upstream script version is located at https://github.com/paulfantom/travis-helper/tree/master/releasing

@paulfantom paulfantom requested a review from atosatto June 25, 2018 11:51
Copy link
Owner

@atosatto atosatto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! I've added the GH_TOKEN to Travis

@paulfantom paulfantom merged commit b4aacef into atosatto:master Jun 25, 2018
@paulfantom paulfantom deleted the auto_release branch June 25, 2018 12:02
@paulfantom
Copy link
Collaborator Author

One more thing. Changelog generation also looks at github labels, so assigning "bug" or "enhancement" will have an effect on changelog. Possibly the best example is here: https://github.com/cloudalchemy/ansible-prometheus/blob/master/CHANGELOG.md#200-2018-05-17

akire0ne pushed a commit to akire0ne/ansible-minio that referenced this pull request Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants