Skip to content

Commit

Permalink
fix(github): team reviewers no set without also setting reviewers (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
lindell committed Feb 21, 2024
1 parent 9636f39 commit edf8735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/scm/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ func (g *Github) setReviewers(ctx context.Context, repo repository, newPR scm.Ne
}

var addedTeamReviewers, removedTeamReviewers []string
if newPR.Reviewers != nil {
if newPR.TeamReviewers != nil {
existingTeamReviewers := scm.Map(createdPR.RequestedTeams, func(team *github.Team) string {
return team.GetSlug()
})
Expand Down

0 comments on commit edf8735

Please sign in to comment.