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