Skip to content

Commit

Permalink
Add logging for when commits are not verified
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaslana committed Aug 18, 2024
1 parent f2e7977 commit cb1f000
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/github/checkUnsigned.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func hasUnsignedCommits(ctx context.Context, githubClient *github.Client, pr *gi
}
verification := commit.Commit.Verification
if verification == nil || !*verification.Verified {
slogs.Logr.Info("Commit is not verified", "commit_sha", commit.GetSHA(), "author", commit.Commit.Author.GetName(), "email", commit.Commit.Author.GetEmail(), "reason", verification.GetReason())
return true, nil
}
}
Expand Down

0 comments on commit cb1f000

Please sign in to comment.