Include bot logins in login-based reviewer mutation guard

This commit is contained in:
Kynan Ware 2026-02-11 13:55:57 -07:00
parent e361335e5c
commit a8655bcda9

View file

@ -618,10 +618,10 @@ func CreatePullRequest(client *Client, repo *Repository, params map[string]inter
// Request reviewers using either login-based (github.com) or ID-based (GHES) mutation
userLogins, hasUserLogins := params["userReviewerLogins"].([]string)
botLogins, _ := params["botReviewerLogins"].([]string)
botLogins, hasBotLogins := params["botReviewerLogins"].([]string)
teamSlugs, hasTeamSlugs := params["teamReviewerSlugs"].([]string)
if hasUserLogins || hasTeamSlugs {
if hasUserLogins || hasBotLogins || hasTeamSlugs {
// Use login-based mutation (RequestReviewsByLogin) for github.com
err := RequestReviewsByLogin(client, repo, pr.ID, userLogins, botLogins, teamSlugs, true)
if err != nil {