cli/pkg/cmd/issue/edit
Kynan Ware 0c48bd0981 Cache issue-type name->ID map and use it in issue edit
prShared.FetchOptions already fetches RepoIssueTypes when IssueType is
edited, but only kept the names. editRun then called RepoIssueTypes a
second time via ResolveIssueTypeName.

Have FetchOptions store the name->ID map on Editable, and look the ID
up directly in editRun. The lookup now also lives inside the per-issue
loop, which fixes a bug where the interactive type prompt's chosen
value was set after the upfront resolve, sending an empty issueTypeId
on the mutation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-06 17:12:29 -06:00
..
edit.go Cache issue-type name->ID map and use it in issue edit 2026-05-06 17:12:29 -06:00
edit_test.go Cache issue-type name->ID map and use it in issue edit 2026-05-06 17:12:29 -06:00