Skip to content

Commit

Permalink
fix: corrected indentation/whitespace and newlines in commit quality …
Browse files Browse the repository at this point in the history
…PR comment

Signed-off-by: Paul Horton <[email protected]>
  • Loading branch information
madpah committed Sep 18, 2024
1 parent c357693 commit 5627f81
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,15 +348,17 @@ func EvaluatePullRequest(logger *zap.Logger, postgres db.IClaDB, evalInfo *types

message := `Thanks for the contribution. Unfortunately some of your commits don't meet our standards. All commits must be signed and have author information set.
The commits to review are:
The commits to review are:
%s`
%s`
commitsMessage := ""
for _, c := range commitsMissingAuthor {
commitsMessage += commitsMessage + fmt.Sprintf(`- <a href="%s">%s</a> - missing author :cop:`, *c.HTMLURL, *c.SHA)
commitsMessage += commitsMessage + fmt.Sprintf(`- <a href="%s">%s</a> - missing author :cop:
`, *c.HTMLURL, *c.SHA)
}
for _, c := range commitsMissingVerification {
commitsMessage += commitsMessage + fmt.Sprintf(`- <a href="%s">%s</a> - unsigned commit :key:`, *c.HTMLURL, *c.SHA)
commitsMessage += commitsMessage + fmt.Sprintf(`- <a href="%s">%s</a> - unsigned commit :key:
`, *c.HTMLURL, *c.SHA)
}
logger.Debug("Adding Comment to Issue", zap.Int("Issue #", int(evalInfo.PRNumber)), zap.String("Comment", fmt.Sprintf(message, commitsMessage)))
_, err = addCommentToIssueIfNotExists(
Expand Down

0 comments on commit 5627f81

Please sign in to comment.