Is it possible to filter GitHub REST API events by type?

Viewed 874
1 Answers

You could setup a webhook, which is designed to filter events.

You would then only receive to your listener push events, that you can then filter per author.

But that is for future commits.

For past commits already pushed, you would need a GraphQL request, like for instance Commit stats for commits in repository in order to get all commits and filter by author (check also GraphQL changelog for the latest possibilities)

Related