Include bot logins in login-based reviewer mutation guard
This commit is contained in:
parent
e361335e5c
commit
a8655bcda9
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue