Skip to content

Include job name in gh pr checks #4916

Description

@danielcompton

Describe the feature or problem you’d like to solve

We have a number of services we test in every PR. There is one workflow per service, with a test job within that workflow.

In the PR view you can see [Workflow name] / [job name] which lets you disambiguate checks.

CleanShot 2021-12-16 at 14 59 04@2x

However in the CLI output, you can only see the job name, so it's not easy to tell which job actually failed:

CleanShot 2021-12-16 at 14 56 09@2x

Proposed solution

Include the Workflow name in the output (perhaps only if there is more than one workflow running?)

This will let cli users do more from the CLI without having to open the GitHub website.

Additional context

Perhaps something more like this?

$ gh pr checks
Some checks are still pending
0 failing, 0 successful, and 2 pending checks

- App / test        https://github.com/<snip>
- Backend / test    https://github.com/<snip>

Activity

  1. mislav commented on Dec 21, 2021

    @mislav
    Contributor

    Thanks for the request!

    Related: #3558 #4002 #4672

  2. chicks-net commented on Jan 25, 2026

    @chicks-net

    The feature was implemented in PR #9079 and released in GitHub CLI v2.50.0 on May 29, 2024. This issue looks like it should get closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-prrelating to the gh pr command

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions