GitHub Push Event All commits

According to the GitHub API events page for Push Event , it returns an array commits

. It says the following:

The array contains a maximum of 20 commits. You can use the Commits API to get additional commits if needed .

The only problem is that looking at the commits API it is impossible to get the commits tied to a specific one Push Event

.

Triggering an HTTP request GET

for the url: https://api.github.com/repos/OWNER/REPO/commits?sha=commitsha seems to return all commits before that sha

. I'm just looking to somehow get the commits that were pushed on this particular one Push Event

.

How can i do this?

+3


source to share





All Articles