Skip to content

gh list run does not support the 'Pending' status #10064

Closed

Description

@mauritz-lovgren

Describe the bug

The gh list run -R <owner>/<repo> --status=pending is not supported. It is by the corresponding API query (gh api /repos/<owner>/<repo>/actions/runs?status=pending, though. Shouldn't this status filtering also be available in the gh list run command?

Steps to reproduce the behavior

  1. Type gh list run -R <owner>/<repo> --status=pending
  2. Command fails with 'invalid argument "pending" for "-s, --status" flag: valid values are {queued|completed|in_progress|requested|waiting|action_required|cancelled|failure|neutral|skipped|stale|startup_failure|success|timed_out}'

Expected vs actual behavior

Expected that the command should be able to list only workflows in the 'Pending' status (in addition to the other statuses).

Activity

  1. williammartin commented on Dec 12, 2024

    @williammartin
    Member

    Hey @mauritz-lovgren,

    It definitely seems weird we don't support this. Looking at the original issue which introduced the --status flag, pending was even included in the enumeration (though startup_failure wasn't).

    I suspect there's two things going on here:

    • startup_failure is missing from the docs (have asked internally about this)
    • pending is missing from the CLI
  2. williammartin commented on Dec 12, 2024

    @williammartin
    Member

    Acceptance Criteria

    Given I have workflow runs, with some in a pending state
    When I run gh run list --status pending
    Then I see a list of the runs in a pending state

  3. added
    gh-runrelating to the gh run command
    and removed on Dec 12, 2024
  4. rovertrack commented on Dec 13, 2024

    @rovertrack

    can i try ??

  5. williammartin commented on Dec 13, 2024

    @williammartin
    Member

    @rovertrack please go ahead.

  6. rovertrack commented on Dec 13, 2024

    @rovertrack

    will try my best

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

    bugSomething isn't workinggh-runrelating to the gh run commandgood first issuehelp wantedContributions welcomepriority-3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions