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)
| 557 | // updatePullRequestReviewsGraphQL uses the RequestReviewsByLogin mutation. |
| 558 | // This mutation replaces the entire reviewer set (union: false). |
| 559 | func updatePullRequestReviewsGraphQL(client *api.Client, repo ghrepo.Interface, prID string, editable shared.Editable) error { |
| 560 | users, bots, teams := partitionReviewersByType(editable.Reviewers.Value) |
| 561 | return api.RequestReviewsByLogin(client, repo, prID, users, bots, teams, false) |
| 562 | } |
| 563 | |
| 564 | // updatePullRequestReviewsREST uses the REST API to add/remove reviewers. |
| 565 | // This is the legacy path for GHES compatibility. |
no test coverage detected