I added a very small dynamic section for this blog, that queries GitHub’s API, to see my lastly updated project. It’s a super simple usage of Fetch API, and some vanilla JS to update the HTML — nothing too fancy.
However, today I discovered something curious. I had started a remote branch with some commits on 09/30, but surprisingly, my component pointed to some other project I had worked on before. GitHub’s Repository page was correct, though.
Added a dummy commit on master confirmed what I suspected. Listing public repositories by updated doesn’t consider changes in other branches than master, you need to use pushed if you want to track all branches. This same post served as Guinea pig to test this :)
Anyway, it’s a simple and cool way to keep track of your current work, and I’ll use it as a minimalistic showcase.
Thanks for reading!