A command line utility to generate CHANGELOG.md with Gitlab merge requests
Project description
Gitlab Changelog Generator
A command line utility to generate CHANGELOG.md for a gitlab repository.
The merged merge requests tagged with a milestone will be collected to generate the changelog.
Install
# pip install gitlab-changelog-gen
Usage
# chg-gen init
Gitlab host: https://your-gitlab.com
Gitlab group: your-group
Gitlab project: your-project
Gitlab private token: your-token
# chg-gen output
Changelog is generated to './CHANGELOG.md' success.
Configuration
Before generate the changelog file, you need to run chg-gen init to init the config first. The default config file
is .chg-gen.config under the working directory.
The config file is YAML format, and this is the instructions:
// host address of your gitlab
host: https://gitlab.example
// group name of your repo
group: foo
// project name of your repo
project: bar
// private_token to access your gitlab API
private_token: yourtoken
Generation Rules
The generation rules of a changelog consist of:
- Release: A
releasesection containsfeaturesandbug fixes. The release name is the title ofmilestoneof the project. - Features: Composed by the merged
merge requestslabeled withfeatureorenhancement. - Bug Fixes: Composed by the merged
merge requestslabeled withbug. - Change Items: Components of
FeaturesandBug Fixes. The content is the title of themerge requestwith its reference and theauthorreference.
An example of CHANGELOG.md.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitlab_changelog_gen-0.0.3.tar.gz.
File metadata
- Download URL: gitlab_changelog_gen-0.0.3.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8122fcaac8e3904b8d4d699903f707cf03181ac281b9ce89cb90e9fea2b6ecef
|
|
| MD5 |
912cc29c978c063d5e0a7e22b35ac853
|
|
| BLAKE2b-256 |
2261c78a42e94cd4de6799330f20751bc97755420c9a04f40dbc6f9c0309e890
|
File details
Details for the file gitlab_changelog_gen-0.0.3-py3-none-any.whl.
File metadata
- Download URL: gitlab_changelog_gen-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02e343c2c35840fc2b766b7c2559149425c4225a193dae02ad097f9a0f11aeeb
|
|
| MD5 |
c56708337ad4761aa7099f258666e054
|
|
| BLAKE2b-256 |
ece8d6afa43822e207446eff3d9ba12f080b4e6084a524302515539dd20e7e75
|