cli/pkg/cmd/issue/create
Kynan Ware 4e6bc78e04 refactor(pr shared): extract SpecialAssigneeReplacer for @me and Copilot expansion
The inline replaceSpecialAssigneeNames closures in AssigneeIds and
AssigneeLogins were duplicated. Extract them into an exported
SpecialAssigneeReplacer type that consolidates MeReplacer and
CopilotReplacer into a single ReplaceSlice call, parameterised by
actorAssignees and copilotUseLogin.

Adopt the new type in the issue create flow as well, replacing the
manual MeReplacer + conditional CopilotReplacer sequence.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 18:59:21 -06:00
..
fixtures/repoWithNonLegacyIssueTemplates/.github/ISSUE_TEMPLATE Interactive template selection test for PR create 2020-09-02 09:56:28 +05:30
create.go refactor(pr shared): extract SpecialAssigneeReplacer for @me and Copilot expansion 2026-03-24 18:59:21 -06:00
create_test.go feat(pr create, issue create): search-based assignee selection in MetadataSurvey 2026-03-23 18:49:28 -06:00