I wanted to switch my application from the old GitHub REST API to the newer, faster, GraphQL. However, if I understand correctly, it’s lacking the functionality that I require - hence I’ve come to ask this question in case I haven’t dug far enough.
This is what I am currently doing using the REST API, and was wondering how possible it is to accomplish the same thing using the GraphQL API:
- Fetch the latest commit status for each branch of a given repository
- Update a commit status with for a given commit SHA
- Fetch recent PushEvents
I have had a browse of the GraphQL reference, and I can’t seem to find a list of branches or commits on a repository which would lead me to being able to query the status of a commit (I have noticed that the Status object is there, but it seems to only be available through the commit list of a pull request?). Similarly, I haven’t been able to find an addCommitStatus mutation, or any mention of how to query for PushEvents.
Appreciate the help!