cli/pkg/cmd
Tyler McGoffin a18c54e824 Fix unhandled panic in FindWorkflow and add tests
FindWorkflow had a code path that could error without handling that error
that was introduced in #10328. I previously called out the lack of tests
in this part of the code in my review, and punting them then bit us here:
https://github.com/cli/cli/pull/10328#pullrequestreview-2597266783.

As such, this fixes the panic, but also adds tests to cover the relevant
code paths through FindWorkflow, including some tests for getWorkflowByID,
getWorkflowsByName, and GetWorkflows.

This does NOT seek to refactor the existing code, just cover the existing
behavior and validate that we are resolving this panic (covered by
TestFindWorkflow_nonHTTPError).
2025-02-28 15:11:53 -08:00
..
actions Remove trailing whitespace 2025-02-13 11:06:27 +05:00
alias Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
api Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
attestation Merge pull request #10508 from iamazeem/10449-inconsistent-examples-format 2025-02-27 09:15:14 -05:00
auth Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
browse Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
cache Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
codespace Merge pull request #10508 from iamazeem/10449-inconsistent-examples-format 2025-02-27 09:15:14 -05:00
completion Remove trailing whitespace 2025-02-13 11:06:27 +05:00
config Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
extension Merge pull request #10508 from iamazeem/10449-inconsistent-examples-format 2025-02-27 09:15:14 -05:00
factory Refactor remote resolver caching tests 2025-02-20 13:15:56 +01:00
gist Merge pull request #10508 from iamazeem/10449-inconsistent-examples-format 2025-02-27 09:15:14 -05:00
gpg-key Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
issue Inconsistent format of description of flags (starting with lowercase letter) (#10507) 2025-02-27 11:40:21 +01:00
label Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
org Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
pr Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
project Update project help text; fix unlink usage 2025-02-27 17:51:05 +05:00
release Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
repo Merge pull request #10508 from iamazeem/10449-inconsistent-examples-format 2025-02-27 09:15:14 -05:00
root Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
ruleset Remove trailing whitespace 2025-02-13 11:06:27 +05:00
run Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
search Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
secret Fix typo in secret base repo selection comment 2025-01-15 14:55:18 +01:00
ssh-key Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
status Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
variable Merge branch 'trunk' into tab-indents 2024-08-06 13:08:48 -04:00
version Fix --version flag printing to stdout 2022-05-24 16:21:13 +02:00
workflow Fix unhandled panic in FindWorkflow and add tests 2025-02-28 15:11:53 -08:00