Skip to content

Commit

Permalink
scm/github: fix the number of comments added
Browse files Browse the repository at this point in the history
  • Loading branch information
herlon214 committed Apr 14, 2022
1 parent 3bbc48f commit 64fd56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scm/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (g *Github) PublishIssuesReviewFor(ctx context.Context, issues []sonarqube.
return errors.New("failed to find relevant issues")
}

body := fmt.Sprintf(`:wave: Hey, I added %d comments about your changes, please take a look :slightly_smiling_face:`, len(issues))
body := fmt.Sprintf(`:wave: Hey, I added %d comments about your changes, please take a look :slightly_smiling_face:`, len(comments))

reviewRequest := &github.PullRequestReviewRequest{
Body: &body,
Expand Down

0 comments on commit 64fd56e

Please sign in to comment.