I am trying to use the GitHub API to grab all files changed by a particular commit, but I don't see a good way of doing it.
In other words, whats the equivalent of git show --name-only sha1
in the GitHub API?
To find out which files changed in a given commit, use the git log --raw command.
If you fetch the commit via the Repository Commits API, the response will include a files
array with the list of changed files:
https://developer.github.com/v3/repos/commits/#get-a-single-commit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With