Grab files changed by commit from GitHub API
10,769
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
Comments
-
n_x_l almost 2 years
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? -
Matt Westlake over 7 yearsThis doesn't seem to still be the case. When I put in my URL api.github.com/repos/doitcwd-nwhack/sailsweb/git/commits/… I don't get anything after "parents"
-
Ivan Zuzak over 7 years@MattWestlake You're using the wrong URL -- that's not the API endpoint I linked to in my answer. Try this: api.github.com/repos/doitcwd-nwhack/sailsweb/commits/…
-
Jay Cork about 2 years