Pychangelog is a Python script that can generate a changelog from your Github issues and pull requests, filtering and organizing them by tag.
Most changelog generators use a Git commit history to fetch changes. But what if the project is managed with issues, labels and pull requests, or the commit messages are not standardized? This is where Pychangelog comes in.
Inspired by github-changelog-generator.
- Generates a markdown file with a list of Github issues and pull requests that have been closed between two selected tags.
- Can ignore issues with certain labels (customizable)
- Automatically ignores pull requests that closed an existing issue, so that the same change isn't listed twice.
- Structures the changelog with certain labels as categories :
New features
,Enhancements
,Fixes
,Other changes
.
- Python
- Poetry
- A Github repo with a repo access token
- Clone this repo :
git clone https://github.com/rero/pychangelog.git
. - Run
poetry install
to install dependencies.
- Edit
config.ini
according to your needs:repo
anduser
: The repo you want a changelog for and its user (can be an owner or an organization).ignore_labels
: Issues and PRs with labels from this list will be ignoredfrom_tag
andto_tag
: The two git tags to compare changes between.to_tag
doesn't need to exist in Github yet. If it doesn't, the changelog will compare changes betweenfrom_tag
and today.merging_branch
: Only PRs merged to this branch will be used for the changelog
- Run
poetry run ./changelog.py --token <your-github-token>
- Check
PYCHANGELOG.md
for your changelog
Pychangelog is a side project developed for the use case of the rero projects. It can generate a changelog using Github issues and PRs that have been closed between two tags (releases). If you need to generate a changelog from your Git history, check one of the many other existing projects that do this. Pychangelog's scope is to only use pull requests and issues from Github.
- Print a changelog from issues and PRs
- Add ability to ignore some labels
- Ignore pull requests that are linked to a closed issue
- Generate the changelog in a
markdown
file - Categorize the issues in the changelog according to specific labels
(
bugs
,enhancements
, etc.) - Generate a changelog from release tags instead of branches
- Generate a complete changelog
- Update an existing
markdown
file
Do not hesitate to make a pull request or open an issue if you want to enhance or correct the project.
Distributed under GNU GENERAL PUBLIC LICENSE, see LICENSE
for more details.
- Pascal Repond - [email protected]
- Johnny Mariéthoz - [email protected]