MCPcopy Create free account
hub / github.com/cli/cli / updatePullRequestReviewsGraphQL

Function updatePullRequestReviewsGraphQL

pkg/cmd/pr/edit/edit.go:556–559  ·  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

554// updatePullRequestReviewsGraphQL uses the RequestReviewsByLogin mutation.
555// This mutation replaces the entire reviewer set (union: false).
556func updatePullRequestReviewsGraphQL(client *api.Client, repo ghrepo.Interface, prID string, editable shared.Editable) error {
557 users, bots, teams := partitionReviewersByType(editable.Reviewers.Value)
558 return api.RequestReviewsByLogin(client, repo, prID, users, bots, teams, false)
559}
560
561// updatePullRequestReviewsREST uses the REST API to add/remove reviewers.
562// 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