Currently, PyGithub API doesn't allow to check for status of the checks run on a PR.
For e.g. in case of a PR https://github.com/apache/incubator-mxnet/pull/18785
There are 12 status checks.
There should be an API that exposes the status of each of those 12 checks or overall status of that PR.
Related issue https://github.com/PyGithub/PyGithub/issues/1063
@s-t-e-v-e-n-k @sfdye I have made significant progress on implementing the Github Checks API. For now I have most of the READ actions implemented based on this: https://docs.github.com/en/rest/reference/checks
Whats your preferred way of sending PRs? One big monolith PR (with individual commits) or split PRs?
Of course individual PR is easier to review, but both are welcome
@sfdye The first of the PRs is in.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Is this available? I can't find it
Don't think its supported yet. There was some PR opened on aug 2 but got closed. so ya.. we're all waiting :)
Please re-ope this then :)
Hey ! If you upgrade to 1.54
, check suite and runs are supported !
If you want an example, I use it here: https://github.com/AFPy/PyDocTeur/pull/47
While I can see check-suites works with 1.54
I can see that the number returned is incorrect
For example:
For this commit: https://github.com/apache/incubator-mxnet/pull/18785/commits/232538f4f4f704fd5d01b97b66655bab5393942b
There were 14 checks made.
But the result returned by the api for this specific commit is:
>>> commit
Commit(sha="232538f4f4f704fd5d01b97b66655bab5393942b")
>>> for a in cs:
... print(a)
...
CheckSuite(url="https://api.github.com/repos/apache/incubator-mxnet/check-suites/1063117829", id=1063117829)
CheckSuite(url="https://api.github.com/repos/apache/incubator-mxnet/check-suites/1064967098", id=1064967098)
That is a Check Suite (That is, a suite of checks), which contains a number of Check Runs, and you'll probably find each CheckSuite has 7 CheckRuns.
Closing since the issue is resolved! Thanks everyone involved in this issue & corresponding PRs!
Most helpful comment
That is a Check Suite (That is, a suite of checks), which contains a number of Check Runs, and you'll probably find each CheckSuite has 7 CheckRuns.