GitHub Pull Request changelog generator
Project description
github-changelog
This is a small utility that generates a changelog between two git tags based on GitHub pull request titles as either plaintext or markdown.
An example might look like:
Installing
pip install github-changelog
Using
changelog [-h] [-m] OWNER REPO [PREVIOUS] [CURRENT]
The changelog
command takes a GitHub repository owner (user or organization), repository name and zero, one, or two tags to limit the set of changes to consider. If no tags are provided, the changelog will be computed between the latest tag and HEAD
. One tag may be provided to set the base tag to compare against HEAD
. Two tags may be provided to specify both base tag and ending tag. The generated changelog will list all GitHub pull requests that have been merged between the specified or inferred tags. If -m
is specified the output will be formatted in markdown and include links to the pull requests.
Pull request merges are identified by their commit message, usually taking the form of Merge pull request #123…
. Squash-and-merged pull requests are identified by having the PR number in parentheses at the end of first line of the commit message.
Examples
changelog cfpb github-changelog
Will generate a text changelog between the latest tag and HEAD
.
changelog cfpb github-changelog 1.0.0
Will generate a text changelog between 1.0.0
and HEAD
.
changelog -m cfpb github-changelog 1.0.0 1.0.1
Will generate a markdown changelog between 1.0.0
and 1.0.1
.
GitHub Enterprise Support
Use the optional --github-base-url
, --github-api-url
, and --github-token
arguments to connect to a GitHub Enterprise instance. For example:
changelog owner some-repo \
--github-base-url "https://github.company.com" \
--github-api-url "https://github.company.com/api/v3" \
--github-token secret-value
Getting help
Please add issues to the issue tracker.
Getting involved
General instructions on how to contribute can be found in CONTRIBUTING.
Open source licensing info
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for github_changelog-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3e1b3ce558db5ea10e09b7817ea8160a3af25c6c77ea90bb4e023891adaaa33 |
|
MD5 | 10e73befe8a4c92ac4e13d97b7756a53 |
|
BLAKE2b-256 | d3abbf8fa9a51bdc97fe4c6cbb5b6c612990ad663eba7a67d6496cbf9fbc2a92 |