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

Function updatePullRequest

pkg/cmd/pr/edit/edit.go:496–507  ·  view source on GitHub ↗
(httpClient *http.Client, repo ghrepo.Interface, id string, number int, editable shared.Editable)

Source from the content-addressed store, hash-verified

494}
495
496func updatePullRequest(httpClient *http.Client, repo ghrepo.Interface, id string, number int, editable shared.Editable) error {
497 var wg errgroup.Group
498 wg.Go(func() error {
499 return shared.UpdateIssue(httpClient, repo, id, true, editable)
500 })
501 if editable.Reviewers.Edited {
502 wg.Go(func() error {
503 return updatePullRequestReviews(httpClient, repo, id, number, editable)
504 })
505 }
506 return wg.Wait()
507}
508
509func updatePullRequestReviews(httpClient *http.Client, repo ghrepo.Interface, prID string, number int, editable shared.Editable) error {
510 if !editable.Reviewers.Edited {

Callers 1

editRunFunction · 0.70

Calls 2

UpdateIssueFunction · 0.92
updatePullRequestReviewsFunction · 0.85

Tested by

no test coverage detected