cli/pkg/cmd/issue
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
..
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 refactor(pr shared): consolidate ActorAssignees and ActorReviewers into ApiActorsSupported 2026-03-24 21:04:41 -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 refactor(pr shared): consolidate ActorAssignees and ActorReviewers into ApiActorsSupported 2026-03-24 21:04:41 -06: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