ClickHouse/utils/changelog
2024-05-30 18:09:50 +02:00
..
.gitignore
changelog.py Fix a year for the changelogs by maximum from PRs 2024-05-30 18:09:50 +02:00
git_helper.py
github_helper.py
README.md
requirements.txt

How To Generate Changelog

Generate github token:

Dependencies:

sudo apt-get update
sudo apt-get install git python3 python3-fuzzywuzzy python3-github
python3 changelog.py -h

Usage example:

Note: The working directory is ClickHouse/utils/changelog

export GITHUB_TOKEN="<your token>"

git fetch --tags # changelog.py depends on having the tags available, this will fetch them.  
                 # If you are working from a branch in your personal fork, then you may need `git fetch --all`

python3 changelog.py --output=changelog-v22.4.1.2305-prestable.md --gh-user-or-token="$GITHUB_TOKEN" v21.6.2.7-prestable
python3 changelog.py --output=changelog-v22.4.1.2305-prestable.md --gh-user-or-token="$USER" --gh-password="$PASSWORD" v21.6.2.7-prestable