New
Apps 6,419Makers 6,403This week 7
Promote your app−30%
git-daily-summarizer screenshot 1
4views in
the last 30 days

git-daily-summarizer

Automated daily summarizer for your git commits

Built with Claude Code/Ollama

by ucencode · Unclaimed · from IDIndonesia · added Oct 29, 2026
no ratings0 comments

An automated daily summarizer for your git commits. A scheduled GitHub Actions workflow collects the commits you made during the day, both from GitHub and from pushes to other hosts recorded by a local git hook, asks an LLM through Ollama to summarize the work, writes a dated Markdown entry to a separate entries repository, and posts the overview to a Discord webhook.

Features

  • Collects the day's commits from the GitHub events feed and scans your repositories for commits the feed missed.
  • Records commits pushed to GitLab, Bitbucket or self-hosted remotes through a global pre-push hook on each device.
  • Summarizes the day with an Ollama-hosted model and stores one entry per day in a dedicated repository.
  • Posts the overview to Discord and rebuilds past days when a device pushes late records.

Setup

  1. Create this repository from the template or fork it, and create an empty private repository named git-daily-summarizer-entries under the same owner.
  2. Add the repository secrets GH_TOKEN (a personal access token with read access to your repositories and write access to the entries repository), OLLAMA_API_KEY and, optionally, DISCORD_WEBHOOK_URL.
  3. Optionally set the repository variables OLLAMA_MODEL and EXCLUDED_REPOS.

The workflow in .github/workflows/daily-activity.yml runs every day at 20:00 UTC and can be started manually for a specific date. .env.example lists the variables for a local run with npm run build && npm run workflow:daily-summary. Days are resolved in the Asia/Jakarta time zone by default; to use another zone, set ACTIVITY_TIME_ZONE and TIME_ZONE in the device config, and update the zone and cron schedule in both workflow files.

In the sections below, <owner> is the GitHub user or organization that owns both repositories.

Recording commits from local devices

The GitHub API only reports commits pushed to GitHub. To include work pushed to other hosts such as GitLab, Bitbucket or a self-hosted server, each device runs a global pre-push hook that records the user's own commits into <owner>/git-daily-summarizer-entries. The daily workflow merges these records with the commits returned by GitHub; when both sources contain the same commit, the GitHub version is kept.

One-time setup of the entries repository

The rebuild of late days runs in <owner>/git-daily-summarizer-entries and is configured once, independently of the number of devices:

  1. Copy client/entries-rebuild.yml to <owner>/git-daily-summarizer-entries as .github/workflows/rebuild.yml.
  2. Create a fine-grained personal access token under Settings → Developer settings → Personal access tokens → Fine-grained tokens, with repository access limited to <owner>/git-daily-summarizer and the Actions permission set to Read and write. The token already used as GH_TOKEN in git-daily-summarizer can be reused if it carries this permission.
  3. Store the token as a repository secret named GH_TOKEN in <owner>/git-daily-summarizer-entries, either under Settings → Secrets and variables → Actions → New repository secret or with gh secret set GH_TOKEN -R <owner>/git-daily-summarizer-entries.

Setup on a new device

The device needs git 2.31 or later, bash, jq, and push access to <owner>/git-daily-summarizer-entries over HTTPS, for example through gh auth login or a git credential helper. A credential helper that stores the login is also what allows the hourly cron sync to push without a prompt.

git clone https://github.com/<owner>/git-daily-summarizer.git ~/git-daily-summarizer
~/git-daily-summarizer/client/install.sh

The installer asks for the author emails to record and a device name, writes them to ~/.config/git-daily-summarizer/config (see client/config.example for every setting), clones the entries repository to ~/.local/share/git-daily-summarizer/entries, sets the global core.hooksPath to client/hooks, and optionally adds an hourly cron job that pushes records left behind by an offline sync. Running the installer again keeps the existing config and clone. Running git pull in ~/git-daily-summarizer updates the hooks.

How recording works

On every push, the hook lists the commits that the push introduces and passes them to client/record.sh in the background, so the push does not wait. The hook then runs the repository's own .git/hooks/pre-push, if one exists. record.sh keeps commits whose author email is listed in AUTHOR_EMAILS, skips repositories listed in EXCLUDED_REPOS, and appends one JSON line per commit to raw/<YYYY-MM-DD>/<DEVICE>.jsonl, where the date is the author date in TIME_ZONE. client/sync.sh then commits and pushes the entries clone. Because each device writes only its own files, records from different devices never conflict. Activity is logged to ~/.local/state/git-daily-summarizer/hook.log.

A commit is recorded before the push completes, so a push that is later rejected still leaves its commits recorded. Repositories that set their own core.hooksPath locally, for example through husky, bypass the global hook and are not recorded.

Late pushes

When a device pushes records for a day that has already been summarized, the workflow in client/entries-rebuild.yml dispatches daily-activity for that date with notify=false, which rewrites the day's entry without posting to Discord. Days older than seven days are not rebuilt automatically.

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#git · #summaries · #github-actions