(httpClient *http.Client, repo ghrepo.Interface, id string, number int, editable shared.Editable)
| 411 | } |
| 412 | |
| 413 | func updatePullRequest(httpClient *http.Client, repo ghrepo.Interface, id string, number int, editable shared.Editable) error { |
| 414 | var wg errgroup.Group |
| 415 | wg.Go(func() error { |
| 416 | return shared.UpdateIssue(httpClient, repo, id, true, editable) |
| 417 | }) |
| 418 | if editable.Reviewers.Edited { |
| 419 | wg.Go(func() error { |
| 420 | return updatePullRequestReviews(httpClient, repo, id, number, editable) |
| 421 | }) |
| 422 | } |
| 423 | return wg.Wait() |
| 424 | } |
| 425 | |
| 426 | func updatePullRequestReviews(httpClient *http.Client, repo ghrepo.Interface, prID string, number int, editable shared.Editable) error { |
| 427 | if !editable.Reviewers.Edited { |
no test coverage detected