Skip to content

Commit 49f1bd8

Browse files
BagToadCopilot
andcommitted
Add TODO requestReviewsByLoginCleanup on GHES ID-based reviewer path
Mark the GHES ID-resolution branch in AddMetadataToIssueParams for cleanup once GHES supports requestReviewsByLogin. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 07138b6 commit 49f1bd8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pkg/cmd/pr/shared/params.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,10 @@ func AddMetadataToIssueParams(client *api.Client, baseRepo ghrepo.Interface, par
130130
}
131131
}
132132

133+
// TODO requestReviewsByLoginCleanup
133134
// When ActorReviewers is true (github.com), pass logins directly for use with
134-
// RequestReviewsByLogin mutation. Otherwise, resolve to IDs for GHES compatibility.
135+
// RequestReviewsByLogin mutation. The ID-based else branch can be removed once
136+
// GHES supports requestReviewsByLogin.
135137
if tb.ActorReviewers {
136138
params["userReviewerLogins"] = userReviewers
137139
if len(botReviewers) > 0 {

0 commit comments

Comments
 (0)