Skip to content

add a fail fast to pr checks --watch #7179

@jmhodges-color

Description

@jmhodges-color

Describe the feature or problem you’d like to solve

gh pr checks --watch is great and has been a useful tool for me. I have it popping up notifications on exploratory PRs or marking draft PRs as ready when checks pass, and all that.

But it'd be great if I could have it exit when it sees the first failed check. The orgs I engage with have long CI processes (10 minutes plus) but many of those checks can fail much earlier on important thing.

Proposed solution

Add a --fail-fast argument to pr checks that, when the first failed check is seen by it in --watch context, tells the CLI to exits (preferably with a specific exit code, but not a hard requirement).

Additional context

(Very grateful for this very handy tool.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions