Published: 15 May 2025
Tagged: Git ChatGPT Productivity Automation
As a developer, I often found myself dreading one simple question in daily stand-ups: β- What did you work on yesterday?β. Iβd mentally rewind the day, try to recall commits, branches, context switches β and inevitably forget something.
So I built a simple script that solved the problem once and for all.
π What It Does?
Every morning, I run a script that:
- Gathers all my Git commits from the previous day.
- Groups them by branch.
- Displays them in a clean, readable format.
- Appends a custom prompt that I paste into ChatGPT β and boom β it generates a clear, concise status update for my stand-up.
Hereβs what the Git output looks like:
π¦ Commits by 'Aleksey Lobanov' for 2025-05-15:
π Branch: develop
β’ a2f9b3d1e 2025-05-15 MOB-762-settings-theme-switcher-finalization
β’ c8412eb74 2025-05-15 MOB-781-user-session-cleanup-on-logout
π Branch: MOB-762-settings-theme-switcher-finalization
β’ 14cbe81e3 2025-05-15 feat(settings): MOB-762 implement dynamic theme switching with persistence across sessions
β’ f3d5e66ba 2025-05-15 refactor(ui): MOB-762 extract common theme logic into ThemeController
β’ 7e9123a84 2025-05-15 fix(auth): MOB-762 ensure proper cleanup of tokens and session state on manual logout
Then I append this prompt below:
π§ Generate a daily summary for the commits above in this format:
Yesterday:
- <summary of task 1>
- <summary of task 2>
π Rules:
β’ Group commits by branch. Each branch = 1 task.
β’ Describe what was done abstractly, no low-level detail.
β’ If any MOB- tasks appear in develop, they are considered completed.
ChatGPT does the rest. And now, I never draw a blank in a daily sync again. Here is the result:
Yesterday:
- Completed task MOB-762 β finalized implementation of theme switching in app settings with improved logic reuse and persistent behavior across sessions.
- Completed task MOB-781 β ensured proper cleanup of user session data during logout to improve stability and security.
π§ Why This Works
- No more manual memory scanning.
- Instant context when switching tasks or reviewing progress.
- Easy way to track completed vs. in-progress work.
π‘ Bonus Tip
- You can easily schedule this script to run every morning with a cron job or a Makefile alias. Want to export it as Markdown for your wiki or send it to Slack? Just wrap the output and youβre good to go.
- For full automation, you can integrate the ChatGPT API directly into the script
π¨βπ» Final Thoughts
Itβs a simple fix, but itβs changed the way I show up to stand-ups. If youβre a dev who forgets what you did yesterday β this little combo of Git + Python + ChatGPT might save your mornings.
π¬ Feedback
If you have suggestions for improving the script or have found a bug, please create an issue on GitHub.
β‘οΈ Git + ChatGPT = Magic