Add TODO requestReviewsByLoginCleanup in CreatePullRequest

Add a cleanup TODO comment above the GHES feature detection branch
in CreatePullRequest so we can track removing the ID-based reviewer
request path once GHES supports requestReviewsByLogin.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Kynan Ware 2026-03-05 10:56:31 -07:00
parent ceb904413d
commit 6341588f90

View file

@ -523,7 +523,9 @@ func CreatePullRequest(client *Client, repo *Repository, params map[string]inter
}
}
// Request reviewers using either login-based (github.com) or ID-based (GHES) mutation
// TODO requestReviewsByLoginCleanup
// Request reviewers using either login-based (github.com) or ID-based (GHES) mutation.
// The ID-based path can be removed once GHES supports requestReviewsByLogin.
userLogins, hasUserLogins := params["userReviewerLogins"].([]string)
botLogins, hasBotLogins := params["botReviewerLogins"].([]string)
teamSlugs, hasTeamSlugs := params["teamReviewerSlugs"].([]string)