cli/pkg/cmd/pr/create
Kynan Ware bff468bafe fix(pr create): wire up @copilot assignee replacement and [bot] suffix
Two bugs introduced in #13009 found during acceptance testing:

1. `pr create --assignee @copilot` sent the literal `@copilot` to the
   API because NewIssueState only ran MeReplacer on assignees, not
   CopilotReplacer. Fixed by switching to SpecialAssigneeReplacer (which
   handles both @me and @copilot) like issue create already does.

2. The replaceActorsForAssignable mutation requires the [bot] suffix on
   bot actor logins (e.g. `copilot-swe-agent[bot]`), unlike
   requestReviewsByLogin which has a separate botLogins field. Added the
   suffix in ReplaceActorsForAssignableByLogin for CopilotAssigneeLogin.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 23:26:28 -06:00
..
fixtures/repoWithNonLegacyPRTemplates/.github/PULL_REQUEST_TEMPLATE Fix failing tests for Windows (due to line-ending issues) 2020-09-02 10:03:56 +05:30
create.go fix(pr create): wire up @copilot assignee replacement and [bot] suffix 2026-03-24 23:26:28 -06:00
create_test.go refactor(pr shared): consolidate ActorAssignees and ActorReviewers into ApiActorsSupported 2026-03-24 21:04:41 -06:00
regexp_writer.go Refactor regexp writer 2020-11-03 09:59:40 +03:00
regexp_writer_test.go spelling: beginning 2020-11-21 21:43:46 -05:00