updatePullRequestReviewsGraphQL uses the RequestReviewsByLogin mutation. This mutation replaces the entire reviewer set (union: false).
(client *api.Client, repo ghrepo.Interface, prID string, editable shared.Editable)
| 468 | // updatePullRequestReviewsGraphQL uses the RequestReviewsByLogin mutation. |
| 469 | // This mutation replaces the entire reviewer set (union: false). |
| 470 | func updatePullRequestReviewsGraphQL(client *api.Client, repo ghrepo.Interface, prID string, editable shared.Editable) error { |
| 471 | users, bots, teams := partitionReviewersByType(editable.Reviewers.Value) |
| 472 | return api.RequestReviewsByLogin(client, repo, prID, users, bots, teams, false) |
| 473 | } |
| 474 | |
| 475 | // updatePullRequestReviewsREST uses the REST API to add/remove reviewers. |
| 476 | // This is the legacy path for GHES compatibility. |
no test coverage detected