MCPcopy Index your code
hub / github.com/cli/cli / updatePullRequestReviewsGraphQL

Function updatePullRequestReviewsGraphQL

pkg/cmd/pr/edit/edit.go:470–473  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

468// updatePullRequestReviewsGraphQL uses the RequestReviewsByLogin mutation.
469// This mutation replaces the entire reviewer set (union: false).
470func 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.

Callers 1

updatePullRequestReviewsFunction · 0.85

Calls 2

RequestReviewsByLoginFunction · 0.92
partitionReviewersByTypeFunction · 0.85

Tested by

no test coverage detected