Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/repos/:owner/:repo/commits/:sha Endpoint Missing #233

Closed
pik opened this issue Jul 12, 2015 · 1 comment
Closed

/repos/:owner/:repo/commits/:sha Endpoint Missing #233

pik opened this issue Jul 12, 2015 · 1 comment

Comments

@pik
Copy link

pik commented Jul 12, 2015

There are two types of commits queries in the github api, one which lists multiple commits and where sha: can either specify a branch or strangely enough an explicit reference and still return an unfiltered list in the following format (the sha specification does not work correctly here?):

https://api.github.com/repos/:owner/:repo/commits?sha=:sha

And the correct form which gives the exact commit:

https://api.github.com/repos/:owner/:repo/commits/:sha

I may have missed something - but I don't seem to be able to access the later form using this gem.

@anuja-joshi
Copy link
Contributor

@pik This end point is implemented at class Client::Repos::Commits < API it gets you single commit.
You can use that as follows :

 github = Github.new
 github.repos.commits.get 'user-name', 'repo-name', 'sha'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants