-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
bugSomething isn't workingSomething isn't workinggh-runrelating to the gh run commandrelating to the gh run commandpriority-3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
Description
Describe the bug
When passing --exit-status alongside other flags to gh run view, the exit status code is not respected.
Affected version
gh version 2.83.2 (2025-12-10)
https://github.com/cli/cli/releases/tag/v2.83.2
Steps to reproduce the behavior
- Capture run id of failed github action
- Run:
gh run view $RUN_ID --exit-status - Follow up with
echo $?and observe the non-zero status code. - With the same run id, add flag like:
gh run view $RUN_ID --exit-status --log-failed - An
echo $?will show a successful status code.
Expected vs actual behavior
Command should exit with non-zero status code if run failed whether or not other flags are passed.
Reactions are currently unavailable
Pinned by williammartin
Pinned comment options
Acceptance Criteria
Given I have a failing job
When I run gh run view with --exit-status and either --log or --log-failed
Then the exit status of gh is non-zero
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggh-runrelating to the gh run commandrelating to the gh run commandpriority-3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic