cli/pkg/cmd/issue
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
..
argparsetest Document TestArgParsing 2025-04-17 15:33:44 +02:00
close Remove StateReason feature detection for issue close 2026-03-04 13:31:30 -07: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
delete Issue delete early arg parsing 2025-04-17 15:27:39 +02:00
develop Simplify progress indicators in issue develop 2026-03-02 17:01:57 +05:30
edit Add missing TODO comments for featuredetection if-statements 2026-02-16 14:24:32 -07:00
list Remove StateReason feature detection for issue close 2026-03-04 13:31:30 -07:00
lock Issue lock early arg parsing 2025-04-17 15:27:39 +02:00
pin Issue pin early arg parsing 2025-04-17 15:27:39 +02:00
reopen Issue reopen early arg parsing 2025-04-17 15:27:39 +02:00
shared Remove StateReason feature detection for issue close 2026-03-04 13:31:30 -07:00
status Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
transfer Issue transfer early arg parsing 2025-04-17 15:27:39 +02:00
unpin Issue unpin early arg parsing 2025-04-17 15:27:39 +02:00
view Show friendly display names in gh issue view 2026-03-06 12:01:06 -07:00
issue.go Group PR, release, and repo subcommands 2022-12-21 14:47:59 +01:00