cli/pkg/cmd/workflow
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
..
disable switch to prompter in workflow commands 2023-08-16 15:19:44 -05:00
enable switch to prompter in workflow commands 2023-08-16 15:19:44 -05:00
list Add headers to all tables (#8157) 2023-10-20 11:20:02 +02:00
run Inconsistent format of description of flags (starting with lowercase letter) (#10507) 2025-02-27 11:40:21 +01:00
shared Fix unhandled panic in FindWorkflow and add tests 2025-02-28 15:11:53 -08:00
view Fix tests 2024-08-16 10:11:52 -07:00
workflow.go Migrate to the new Cobra command grouping feature 2022-11-09 16:42:13 +01:00