Automating My GitHub Stats Post
Let me ask you this: have you ever looked at your GitHub stats and thought, “Wow, the world deserves to see this”? Me neither. But then inspiration struck — or maybe it was boredom during my Christmas break — and I decided to automate sharing my GitHub stats on Bluesky. Here’s how it all went down.
Learning
Before diving head first, I had to learn a couple things.
GitHub API
Because I’d never used the GitHub API before, I started with the official docs. Unfortunately for me, the docs are like that overly enthusiastic professor who assigns 100 readings on the first day. Great content, but where do you even start? For my humble purposes, they were a bit overwhelming (ok more likely it was my inexperience).
So, I turned to the internet (as one does) and stumbled upon Satyam Tripathi’s tutorial. It was a lifesaver, condensing all the basics I needed into a digestible read.
Bluesky API
A couple weeks back I wrote an article about starting with Bluesky API in a Jupyter notebook, so I already knew the basics. Plus, Bluesky’s docs were also a joy to work with.
Development
Breaking It Down
I took things one step at a time, starting with fetching my GitHub data. Here’s what I wanted:
- Number of commits
- Most used language
- Number of new repositories
- Number of added/deleted lines of code
Once I had that, the next step was creating my post and sending it out to Bluesky. Simple, right?
Testing in Jupyter Notebook
As usual, I started in a Jupyter notebook. There’s something deeply satisfying about testing and debugging small pieces of logic in real-time.
A quick note: I’m using the UV package manager to manage my Python virtual environments. It’s a lifesaver for keeping everything organized. Highly recommend.
Automation: The final frontier
With the logic working in my notebook, it was time to automate. Where to host the code? How to run it monthly? After a brief flirtation with AWS (and deciding it was overkill), I found my answer in Google’s Cloud Run Functions and Cloud Scheduler. These tools made it easy to deploy the script and schedule it to run every month without me lifting a finger.
Get Filip Melka’s stories in your inbox
Join Medium for free to get updates from this writer.
Here is a highly professional, totally-not-hastily-made diagram of my automation workflow:
Conclusion
And there you have it — a project born from curiosity (and maybe a hint of procrastination). Now, my GitHub stats post themselves while I sit back and marvel at my own ingenuity. If only automating life were always this simple.
Got any questions? Or ideas for what I should automate next? Let me know!










