Skip to content

Content API in GitHub #24479

Discussion options

You must be logged in to vote

Hi @anvinraj,

For The Commits API, there’s an endpoint for fetching a list of commits on a repository. You could utilize the sha value to start listing commits from a specific SHA or branch:

https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository

Example:

https://api.github.com/repos/github/linguist/commits?sha=dev

If you’re interested in fetching every commit, I recommend leveraging pagination as well:

https://developer.github.com/v3/#pagination

I hope this helps 

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants