You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gh list run does not support the 'Pending' status #10064
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
Type gh list run -R <owner>/<repo> --status=pending
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).
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)
Activity
williammartin commentedon Dec 12, 2024
Hey @mauritz-lovgren,
It definitely seems weird we don't support this. Looking at the original issue which introduced the
--statusflag,pendingwas even included in the enumeration (thoughstartup_failurewasn't).I suspect there's two things going on here:
startup_failureis missing from the docs (have asked internally about this)pendingis missing from the CLIwilliammartin commentedon Dec 12, 2024
Acceptance Criteria
Given I have workflow runs, with some in a pending state
When I run
gh run list --status pendingThen I see a list of the runs in a pending state
rovertrack commentedon Dec 13, 2024
can i try ??
williammartin commentedon Dec 13, 2024
@rovertrack please go ahead.
rovertrack commentedon Dec 13, 2024
will try my best