by x-motemen

x-motemen / git-pr-release

Release pull request generator

450 Stars 45 Forks Last release: Not found MIT License 174 Commits 25 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

git-pr-release Gem Version

Creates a "release pull request", whose body consists of features list or pull requests that are to be released into production. It's especially useful for QA and pre-release checks.

automatically collect pull requests merged into master branch and generates the content of the release pull request.


Suitable for branching strategy like below (similar to git-flow):

  • Feature branches are first merged into "staging" (or release, development) branch.
  • Then the staging branch is merged into "production" branch, which is for production release.


All configuration are taken using

git config
. You can write these variables in file
(instead of
) to share project-wise configuration to other collaborators.


Token for GitHub API.

If not set, you will be asked to input username/password for one time only, and this configuration variable will be stored.

You can specify this value by

environment variable.


The branch name that is deployed in production environment.

You can specify this value by

environment variable.

Default value:



The branch name that the feature branches are merged into and is going to be merged into the "production" branch.

You can specify this value by

environment variable.

Default value:



The template file path (relative to the workidir top) for pull requests created. Its first line is used for the PR title, the rest for the body. This is an ERB template.

You can specify this value by

environment variable.

If not specified, the content below is used as the template (embedded in the code):



The labels list for adding to pull requests created. This value should be comma-separated strings.

You can specify this value by

environment variable.

If not specified, any labels will not be added for PRs.


The name that is listed next to each PR title. Accepted values:


You can specify this value by

environment variable.

If not specified, the mention will be the PR assignee

Errors and exit statuses

No pull requests to be released

exit status is 1.

Failed to create a new pull request

exit status is 2.

Failed to update a pull request

exit status is 3.

Failed to add labels

exit status is 4.


motemen [email protected], original in-house version written by @hitode909.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.