Extract the latest commit hash of a specific file in a GitHub repository within a given branch:
curl 'https://api.github.com/repos/curl/curl/commits?path=/README.md&sha=master' | jq '.[0].sha'
The "curl/curl" repo. The file "/README.md". The branch "master". Adjust accordingly for your own data.
(ah yes, Mastodon hides the https : // prefix on the hostname)