Generate daily worklogs from git commits. Use when asked to create a worklog, daily report, or summarize work done. Supports current project commits or all repos across user's GitHub organizations.
Generate readable daily worklogs from git commit history.
git log --since="YYYY-MM-DD 00:00" --until="YYYY-MM-DD 23:59" --author="$(git config user.email)" --format="=== COMMIT ===%n%s%n%b"
Step 1: Discover user's organizations
gh api user/orgs --jq '.[].login'
Step 2: Fetch commits from each org
gh search commits --author="@me" --owner="ORG_NAME" --committer-date="YYYY-MM-DD..YYYY-MM-DD" --json repository,commit --jq '.[] | "\(.repository.name): \(.commit.message)"'
If user belongs to multiple orgs:
Read the full commit messages and synthesize into a coherent worklog. Do NOT just list commit messages.
Output directly as text. Do NOT create a file.
When commits span multiple repos:
Derive labels by dropping the common org/project prefix:
politech-frontend → "On frontend, ..."politech-admin → "On admin, ..."politech-landing → "On landing, ..."For significant features:
For small fixes:
Skip entirely:
Single repo:
YYYY-MM-DD
- [Feature description].
- Fixed [what was broken].
Multiple repos:
YYYY-MM-DD
- [Main repo feature].
- Fixed [main repo fix].
- On frontend, [frontend work].
- On landing, [landing work].
Commits across repos: