cli/pkg/cmd/pr/status
Tyler McGoffin e1423cdbbf Refine error handling of ReadBranchConfig
cmd.Output() will return an error when the git command ran successfully
but had no output. To handle this, we can check Stderr, as we expect it to
be populated for any ExitErrors or otherwise when there is a command
failure.

This allows for propagation of this error handling up the call chain, so
we are now returning errors if the call to git fails instead of just
handing off an empty BranchConfig and suppressing the errors.

Additionally, I've removed some more naked returns that I found in
pkg/cmd/pr/create.go createRun
2025-01-09 11:45:15 -08:00
..
fixtures Add cmd test for pr status with counts by state 2023-05-24 16:00:34 +02:00
http.go Use go-gh/auth package for IsEnterprise, IsTenancy, and NormalizeHostname 2024-10-15 11:56:43 -07:00
http_test.go Add ghe.com to tests describing ghec data residency 2024-10-15 12:24:41 -07:00
status.go Refine error handling of ReadBranchConfig 2025-01-09 11:45:15 -08:00
status_test.go Add test for empty BranchConfig in prSelectorForCurrentBranch 2025-01-09 09:01:14 -08:00