Skip to content

15five/rocket_releaser

Repository files navigation

Rocket Releaser CircleCI PyPI version

Library for creating release notes based on PR descriptions for a set of git changes.

example slack message

Installation:

pip install rocket-releaser

Usage:

python -m rocket_releaser github_token start_sha end_sha github_org github_repo -r repo_location --vpc_name staging --env_name staging --search_branch staging --slack_webhook_key slack_key

This would label PR's inbetween first and second sha with "staging" and send the release notes to slack. If you are using a personal github account the "github_org" would be your github username.

The github token must have "repo" scope access and the token's user must have write access to the repo.

You can also pass in Jira paramaters to label Jira tickets.

--jira_token jiraToken --jira_username bob@company.com --jira_url https://company.atlassian.net

PR format:

To label PR's and tickets your PR's should be formatted like so:

<!-- Detailed PR description for reviewers goes here... --> 

RELEASES
Change default avatar image #public Closes [ENG-1234]

<!--
- Newline after RELEASES (need this for proper formatting in slack).
- Add a helpful description!
- Try to make it human readable.
- Keep it a single line.
- Add the ticket number in square brackets.
- Indicate whether the release will close or fix a ticket with Closes or Fixes before the ticket number.
-->

QA
default avatar image should be a penguin [ENG-1234]

FAQ:

Q: Why use this over semantic-release?

A: Semantic-release's slack plugin as of 05/21 does not generate an extended changelog. Semantic Release does not have a plugin for tagging github PR's or tickets either, as far as I am aware.

Q: How do I run this using Ansible?

A: See https://github.com/15five/rocket_releaser/wiki/Running-Rocket-Releaser-on-Ansible