Do not make reviewer update request if there are no reviewer changes (#7730)
This commit is contained in:
parent
ad283cff72
commit
f5d581d363
1 changed files with 4 additions and 0 deletions
|
|
@ -260,6 +260,10 @@ func updatePullRequestReviews(httpClient *http.Client, repo ghrepo.Interface, id
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if (userIds == nil || len(*userIds) == 0) &&
|
||||
(teamIds == nil || len(*teamIds) == 0) {
|
||||
return nil
|
||||
}
|
||||
union := githubv4.Boolean(false)
|
||||
reviewsRequestParams := githubv4.RequestReviewsInput{
|
||||
PullRequestID: id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue