(httpClient *http.Client, repo ghrepo.Interface, id string, number int, editable shared.Editable)
| 494 | } |
| 495 | |
| 496 | func 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 | |
| 509 | func updatePullRequestReviews(httpClient *http.Client, repo ghrepo.Interface, prID string, number int, editable shared.Editable) error { |
| 510 | if !editable.Reviewers.Edited { |
no test coverage detected