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

Function updatePullRequestReviewsGraphQL

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

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

Callers 1

updatePullRequestReviewsFunction · 0.85

Calls 2

RequestReviewsByLoginFunction · 0.92
partitionReviewersByTypeFunction · 0.85

Tested by

no test coverage detected