cli/pkg/cmd/pr
Kynan Ware e6d9019bc9 fix(pr create): use login-based assignee mutation on github.com
When ActorAssignees is true (github.com), pass assignee logins directly
to the ReplaceActorsForAssignable mutation instead of resolving logins
to node IDs. This eliminates the need to bulk fetch all assignable
users/actors and fixes a bug where providing assignees via CLI flag
and then interactively adding metadata would fail with 'not found'
because the cached MetadataResult had no assignee data.

Changes:
- Set state.ActorAssignees = true in pr create (was missing)
- AddMetadataToIssueParams: pass assigneeLogins when ActorAssignees
  is true, skip fetch and ID resolution entirely
- CreatePullRequest/IssueCreate: call ReplaceActorsForAssignableByLogin
  after creation to assign via logins
- Consolidate replaceActorsForAssignable mutation into api/ package
  (ReplaceActorsForAssignableByLogin + ReplaceActorsForAssignableByID)
- Remove duplicate replaceActorAssigneesForEditable from editable_http.go
- Add TODO replaceActorsByLoginCleanup markers on edit paths

Fixes cli/cli#13000

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-23 15:21:20 -06:00
..
checkout fix(pr checkout): add alias co 2025-09-24 14:56:59 +01:00
checks fix: --interval flags docs in gh pr checks 2025-10-30 20:06:45 +00:00
close Cleanup run command stubbed finders in tests 2025-05-02 14:48:52 +02:00
comment Add --delete-last option to pr comment and issue comment (#10596) 2025-05-01 14:12:55 +01:00
create fix(pr create): use login-based assignee mutation on github.com 2026-03-23 15:21:20 -06:00
diff Merge branch 'trunk' into feature/pr-diff-exclude 2026-03-09 19:35:51 +05:30
edit Add missing TODO comments for featuredetection if-statements 2026-02-16 14:24:32 -07:00
list Add missing TODO comments for featuredetection if-statements 2026-02-16 14:24:32 -07:00
merge test(pr merge): always assert stderr 2025-07-05 15:02:41 +01:00
ready Cleanup run command stubbed finders in tests 2025-05-02 14:48:52 +02:00
reopen Cleanup run command stubbed finders in tests 2025-05-02 14:48:52 +02:00
revert Return only basic pull request info when reverting a PR 2025-10-22 18:02:35 -04:00
review Cleanup run command stubbed finders in tests 2025-05-02 14:48:52 +02:00
shared fix(pr create): use login-based assignee mutation on github.com 2026-03-23 15:21:20 -06:00
status Rework ref usage when finding and creating PRs 2025-04-15 13:38:10 -06:00
update-branch chore: remove redundant word in comment 2025-03-12 16:13:46 +08:00
view Add generic actorDisplayName for all actor display names 2026-03-06 11:55:09 -07:00
pr.go feat: implement pr revert 2025-10-06 13:25:31 -04:00