gh pr list
response status code override if using --label
parameter
#8930
Labels
gh pr list
response status code override if using --label
parameter
#8930
Describe the bug
gh pr list
will return non-0 exit status if command failed for any reason, GH_REPO is invalid, GitHub response 500 because incident, etc. Howevergh pr list --label
will override command status code with0
even HTTP status is 500 or any.Steps to reproduce the behavior
0
even command failed.Expected vs actual behavior
actual
Expected
gh pr list --label <foo>
exit code should same asgh pr list
whengh pr lit
it self failed.Even using
--label
or not,gh pr list
command's oroginal exit-code SHOULD respected.--label
override exit-code with0
cause unexpected situations. I've notice this issue with incident that happen an hour ago, my commandgh pr list --label foobar
actually show following output, but exit-code was 0 and break workflows.Logs
Paste the activity from your command line. Redact if needed.
The text was updated successfully, but these errors were encountered: