cli/pkg/cmd/issue/create
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
..
fixtures/repoWithNonLegacyIssueTemplates/.github/ISSUE_TEMPLATE Interactive template selection test for PR create 2020-09-02 09:56:28 +05:30
create.go Cache issue-type name->ID map and use it in issue edit 2026-05-06 17:12:29 -06:00
create_test.go Test interactive issue-type prompt in createRun 2026-05-06 16:42:36 -06:00