-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
GitHub CI: send additional status update “in progress” (and maybe “cancelled”) #12022
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, we use commit statuses (https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28), not commit checks, I think RTD is good using commit statuses, as commit checks are from what I understand are for linters or similar that report errors/warnings to a specific file/line.
That's probably a bug that we should fix. |
Well, the page you linked says
… which is what this issue is about. E.g. I’m using check runs for a benchmark server and it’s quite straightforward to use: You create a check run, store its ID together with the rest of job metadata, and then update it while the job runs and if/when it’s restarted. Features that check runs have over commit statuses:
Only caveat:
|
We are in the process of replacing our GH OAuth app for a GH app (#11942).
This feature looks interesting to integrate with our file tree diff feature (https://docs.readthedocs.com/platform/stable/visual-diff.html), as opposed to create a comment in the PR.
I assume that means that it doesn't work on PRs from forked repos? |
IIRC it does work for these. I don’t know what that quote refers to 🤷 |
What's the problem this feature will solve?
This is about GitHub PR runs. The
in_progress
part makes two things a little nicer:queued
andcompleted
(alsopending
looks very similar toqueued
)failure
until it finishes again instead of asin_progress
againDescribe the solution you'd like
GitHub check runs have a few state updates, including
in_progress
: https://docs.github.com/en/rest/checks/runs?apiVersion=2022-11-28#update-a-check-runIt would be great if you could update the check run with
in_progress
once it has started/restartedPart 2:
cancelled
There’s also a
conclusion
field, which you can use to display manuallycancelled
runs as such instead of lumping them together with regularfailure
ones:The text was updated successfully, but these errors were encountered: