cli/pkg/cmd
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
..
accessibility PR feedback 2025-04-30 15:05:07 -04:00
actions Remove trailing whitespace 2025-02-13 11:06:27 +05:00
agent-task fix(agent-task): resolve Copilot API URL dynamically (#12956) 2026-03-18 18:14:02 +00:00
alias Fixes #10590 2025-03-26 13:42:39 -04:00
api Use pre-compiled regexp for matching Content-Type 2026-02-25 19:43:45 +09:00
attestation chore: apply go fix to remove deprecated // +build tags 2025-10-30 21:10:45 +00:00
auth refactor(auth refresh): use PlainHttpClient instead of zero http.Client 2025-10-13 16:51:13 +01:00
browse feat(browse): add blame flag 2026-03-03 19:03:40 -07:00
cache fix(cache delete): add unit tests and expand help doc 2026-01-20 08:30:34 +01:00
codespace fix: resolve copyloopvar issues 2025-11-03 20:05:26 +00:00
completion Remove trailing whitespace 2025-02-13 11:06:27 +05:00
config Merge pull request #11003 from cli/kw-bks/enclose-config-options-in-code-blocks 2025-05-22 10:14:14 -06:00
copilot Set COPILOT_GH env var when launching Copilot CLI 2026-03-02 10:25:47 -05:00
extension Fix extension install error message showing raw struct instead of owner/repo (#12836) 2026-03-05 12:28:54 +01:00
factory pin REST API version to 2022-11-28 2026-02-13 19:46:16 +01:00
gist Add usage examples to gh gist edit command 2026-02-17 12:38:15 -07:00
gpg-key Fix StatusJSONResponse usage (#10810) 2025-05-01 20:22:43 +01:00
issue fix(pr create): use login-based assignee mutation on github.com 2026-03-23 15:21:20 -06:00
label Introduce color_labels support, update commands 2025-04-02 18:24:20 -04:00
licenses Bundle licenses at release time (#12625) 2026-02-18 17:59:27 +01:00
org Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
pr fix(pr create): use login-based assignee mutation on github.com 2026-03-23 15:21:20 -06:00
preview Refactor MultiSelectWithSearch to use result struct 2026-01-26 13:29:22 -07:00
project Revert "refactor: deduplicate scope error handling between api/client.go and project queries" 2026-03-12 12:45:48 +01:00
release Clarify --clobber flag deletes assets before re-uploading 2026-02-17 18:11:57 -07:00
repo fix: address review feedback on squash merge commit message 2026-03-10 18:27:21 +05:30
root Bundle licenses at release time (#12625) 2026-02-18 17:59:27 +01:00
ruleset Remove trailing whitespace 2025-02-13 11:06:27 +05:00
run Respect --exit-status with --log and --log-failed 2026-02-13 16:04:06 +01:00
search docs(search prs): mention advanced issue search syntax support 2025-09-08 18:37:37 +01:00
secret refactor: drop multierror in favor of std 2025-12-02 15:08:58 +01:00
ssh-key Remove out of scope changes, update list commands 2025-03-31 11:58:30 -04:00
status Deprecate ColorScheme.Gray for ColorScheme.Muted 2025-04-06 10:18:48 -04:00
variable refactor: drop multierror in favor of std 2025-12-02 15:08:58 +01:00
version Fix --version flag printing to stdout 2022-05-24 16:21:13 +02:00
workflow fix(workflow run): bail out on feature detection error 2026-02-17 11:48:25 +00:00