Last Commit based on File/Folder in repo
:clipboard: Description
A badge depicting when a specific folder or project within a repository was updated or committed to.
:link: Data
https://github.com/GamingInfinite/KadeEngineMods
take my repo for instance. I have a mod in there that is in a folder named MFM. In order to get the last commit to that folder, I can go to this API link:
https://api.github.com/repos/GamingInfinite/KadeEngineMods/commits?path=MFM
after that, you can take the commit in slot 0, go to committer (or author), and in there is a data tag listed as date. Both in committer and author, it is the same date.
:microphone: Motivation
On the readme of my repo (listed in the above Data section as an example), I host several mods that I created that were ported using Kade Engine's (relatively) new ModCore feature. I did this as it didn't really make sense to me to make a separate repo for each one as all of them are ports (so far). I host download links on the readme as well, as I don't really feel comfortable doing a full release of all of them, or even individual releases as whenever I make a large update I'd have to do a new release and that takes time. So I just opted to make it where (since the GitHub already has the mods in downloadable form) there are download links to the GitHub itself (through downgit) to save myself time. The only other thing that I added to the readme as something more for me than anyone else was when it was last updated, but that also takes me going through each time I modify it to replace the date that it was updated on the readme, and doing a readme bump every time was a hassle, and I just did one massive one since I'd neglected to add the mod links anyway and updated all of the dates as well. Having an automated process to show the date would save me a lot of time, and I know a few other repos that could implement this shield if they wanted to as well.