pr-note
A command-line tool to generate PR notes summarizing unmerged PRs on GitHub between two branches.

Usage
For example, to create a release pull request from the feature to the main in the octocat/Hello-World repository, do the following:
Alternatively, if environment variables are set in a CI/CD environment, corresponding arguments can be omitted as follows:
Executing the above command will create a pull request from the head branch to the base branch. If a pull request already exists, it will be updated instead.
Pull request body and title can be customized using a template file. The first line of the template file is used as the pull request title, and the rest as the body. Default template is used if no template file is specified.
Template uses Tera syntax.
In the template, the prs object is available, which is the list of pull requests that have been merged into the head branch but not into the base branch. Each pull request object has the following fields:
number: Pull request numberauthor: Pull request authortitle: Pull request titlebody: Pull request body as markdownlabels: List of labels attached to the pull requestgroup: Group name if--group-byoption is used, otherwise ""
group is determined based on the value of --group-by option:
- If
labelis specified, labels attached to the pull request are arranged in lexicographical order and joined with " / " to form the group name. If no labels are attached, "others" is used. - If
titleis specified, one or more [bracket] segments at the beginning of the title are arranged in lexicographical order and joined with " / " to form the group name. If no bracketed segments are found, "others" is used. - If not specified, all pull requests are considered as "".
Installation
cargo
npm
# If you want to install globally
# If you want to install as a development dependency in a project
Homebrew
Options
)
)
Inspiration & Alternatives
Tools that inspired this project or can be used as alternatives: