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