GitHub API "combined status" is always Pending #58407
Replies: 5 comments 2 replies
-
|
Is there update with this bug or is there another way to get the state of a branch? |
Beta Was this translation helpful? Give feedback.
-
|
Is this supposed to be fixed or is there an alternative (working) endpoint we can query to get the combined status of a commit? |
Beta Was this translation helpful? Give feedback.
-
|
I tried graphQL API as well but that just returns me null. |
Beta Was this translation helpful? Give feedback.
-
|
I reported this as a bug using the GithubSupport (https://support.github.com/contact/bug-report). Let's hope they fix it soon |
Beta Was this translation helpful? Give feedback.
-
For the particular example quoted, I don't see that there are any commit statuses on that commit - supercobra/st@dbf9e48. Unless am mistaken, it is the documented behavior that the API would return a
For the others running into the same issue, you might want to confirm whether whatever integration you are using is reporting Checks rather than commit Statuses. For example, if you are using GitHub Actions for your CI/CD, it will report Checks not commit Statuses. You can use the List check runs for a Git reference endpoint to view Checks on a commit sha. If both of these endpoints don't return any values and you can see that the commit status or check was reported on the commit in the UI, then definitely contact GitHub Support. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
I am trying to get the status of a repo. From Github doc it should be one of the following:
This is very useful for checking if an automated build passed or failed.
Using this API to get a repo combined status:
https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28#get-the-combined-status-for-a-specific-reference
Github response is always a pending state regardless of the repo so I am inclined to think that there is a bug in the Github API. Anybody has a fix or workaround?
Beta Was this translation helpful? Give feedback.
All reactions