Commit Reporter CLI is a command-line tool that extracts commit logs from a specific Git repository and, optionally, generates a summary using OpenAI's API. Reports are organised by run, with output neatly tagged by repository name and a human-readable timestamp.
- Extract commit logs from a given Git repository.
- Optionally summarise commit logs using an advanced OpenAI model.
- Organised output with run-specific directories and filenames.
- Python 3.13
- Poetry
- An OpenAI API key (set in a
.env
file)
Before installing, ensure you have Poetry installed.
From the project root, run:
make install
This command will:
-
Install Project Dependencies:
The installer verifies Poetry is installed and runspoetry install
to install all required dependencies. -
Create a Default
.env
File:
If a.env
file does not exist at the project root, one will be created with a placeholder for the OpenAI API key.
Note: After installation, you should update your .env
file with your actual OpenAI API key.
Run the CLI tool with:
poetry run python -m commit_reporter.main <repository_path> [--author AUTHOR] [--summarise]
For example, to extract commits from a repository at /path/to/repository while filtering by the author “John Doe” and generating a summary:
poetry run python -m commit_reporter.main /path/to/repository --author "John Doe" --summarise
If you wish to customise output directories, prompts, or model details, modify the corresponding settings in commit_reporter/settings.py.