cli/pkg/cmd
Kynan Ware 3c00ffdade refactor(pr shared): consolidate ActorAssignees and ActorReviewers into ApiActorsSupported
The CLI had two per-entity flags (ActorAssignees on EditableAssignees and
IssueMetadataState, ActorReviewers on IssueMetadataState) threaded through
different layers of the stack to distinguish github.com from GHES. Both
flags were always set from the same source (issueFeatures.ActorIsAssignable)
and never had different values, but they were carried independently on
different structs. This led to a confusing asymmetry where:

- EditableAssignees had ActorAssignees but EditableReviewers had nothing
- The PR edit flow piggybacked on editable.Assignees.ActorAssignees to
  make reviewer mutation decisions, which was misleading
- RepoMetadataInput only had ActorAssignees with no reviewer equivalent

This commit replaces all per-entity flags with a single ApiActorsSupported
bool hoisted to the shared level on Editable, IssueMetadataState, and
RepoMetadataInput. Both assignees and reviewers now key off the same signal.

Every branch site is marked with // TODO ApiActorsSupported so we can grep
for cleanup sites when GHES eventually supports the actor-based mutations
(replaceActorsForAssignable, requestReviewsByLogin).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 21:04:41 -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 Record agentic invocations in User-Agent header 2026-03-24 19:58:37 +01: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 Record agentic invocations in User-Agent header 2026-03-24 19:58:37 +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 refactor(pr shared): consolidate ActorAssignees and ActorReviewers into ApiActorsSupported 2026-03-24 21:04:41 -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 refactor(pr shared): consolidate ActorAssignees and ActorReviewers into ApiActorsSupported 2026-03-24 21:04:41 -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 Record agentic invocations in User-Agent header 2026-03-24 19:58: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