This small tool builds a Markdown and JSON summary of changes between two git refs using the GitHub API.
- Ensure
GITHUB_TOKENis available (in.envor exported). - Install dependencies:
python -m pip install python-dotenv requests tqdm- Run the script:
Using the project's uv runner (preferred):
uv run python src/github_release_context.py --repo owner/name --from v1.2.3 --to v1.3.0 --out-dir ./outOr run directly with Python:
python src/github_release_context.py --repo owner/name --from v1.2.3 --to v1.3.0 --out-dir ./out-
The script writes two artifacts into the
out/directory by default:release_context_<owner>_<repo>_<from>_to_<to>.mdrelease_context_<owner>_<repo>_<from>_to_<to>.json
-
The
out/directory is ignored by git (see.gitignore).
- If you don't have
tqdminstalled, the script falls back to a simple progress indicator. - To include PR file lists (slower), pass
--include-pr-files.