Generate daily GitHub summaries of newly created pull requests (PRs) and
commits, categorized by organization. Optionally, use Ollama
to generate a brief
summary of each PR based on its title. Additionally, you can leverage the
daily GitHub workflow to automate the tool’s
execution, submitting the report as a GitHub issue.
- Ollama installed
- Ollama
mistral
model (optional) - Python + UV
daily-summary
needs a Github token to fetch organization/user PRs and
commits. To create one, follow these steps:
- Create a Github token with the
following permissions:
repo
-> Check alladmin:org
-> Checkread:org
user
-> Check all
- Authorize the token if your organization has SAML enabled. Follow this guide for instructions
To install run:
uv sync
To check if its properly installed:
uv run task cli --help
Ensure your GitHub token is available in your environment as GITHUB_TOKEN
, or
provide the token as a parameter to the command using:
uv run task cli --token <GITHUB_TOKEN> ...
This will default to today's date.
uv run task cli daily-summary
uv run task cli daily-summary --yesterday
uv run task cli daily-summary --date 2025-02-28
uv run task cli --username github-bot daily-summary
uv run task cli list-issues
uv run task cli list-issues --date 2025-02-28
uv run task cli list-commits --date 2025-02-28
uv run task cli account
For more usages, use:
uv run task cli --help
- Fork the repository
- Follow the steps shown in section Creating a Github token
- Add the newly created token to your CI secrets as
GH_TOKEN
. See this guide for more details - Update the GitHub workflow configuration:
- Replace the values of
SUMMARY_REPOSITORY
andSUMMARY_ASSIGNEE
in the environment variables with your summary repository and assignee.
- Replace the values of