Reputation: 557
I'm trying to obtain the commits that were included on an specific release, on a repository that uses tags to identify releases. According to this answer, this doable through git log
.
However, I need to gather this information for several repositories, so using an API is more convenient. Is it possible to get that information from GitHub's REST API?
Upvotes: 1
Views: 566
Reputation: 7484
You can use the compare two commits API:
GET /repos/:owner/:repo/compare/:base...:head
This is the same as locally running git log base..head
.
Given that you want to automate this for several repos check List your Repositories API as well
Let me know if you need more info.
Upvotes: 3