Skip to content

GitHub App: use checks API to report PR status #12022

Open
@flying-sheep

Description

@flying-sheep

What's the problem this feature will solve?

This is about GitHub PR runs. The in_progress part makes two things a little nicer:

  1. When a commit comes in triggering a RTD job, it’s unclear if RTD is functional, as it doesn’t update the check run between queued and completed (also pending looks very similar to queued)
  2. when restarting a run, it still displays as failure until it finishes again instead of as in_progress again

Describe 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-run

status string

The current status of the check run. Only GitHub Actions can set a status of waiting, pending, or requested.

Can be one of: queued, in_progress, completed, (waiting, requested, pending)

It would be great if you could update the check run with in_progress once it has started/restarted

Part 2: cancelled

There’s also a conclusion field, which you can use to display manually cancelled runs as such instead of lumping them together with regular failure ones:

conclusion string

Required if you provide completed_at or a status of completed. The final conclusion of the check. Note: Providing conclusion will automatically set the status parameter to completed. You cannot change a check run conclusion to stale, only GitHub can set this.

Can be one of: action_required, cancelled, failure, neutral, success, skipped, (stale), timed_out

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions