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> |
||
|---|---|---|
| .. | ||
| fixtures/repoWithNonLegacyIssueTemplates/.github/ISSUE_TEMPLATE | ||
| create.go | ||
| create_test.go | ||