Skip to content

Commit cb1f000

Browse files
committed
Add logging for when commits are not verified
1 parent f2e7977 commit cb1f000

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/github/checkUnsigned.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ func hasUnsignedCommits(ctx context.Context, githubClient *github.Client, pr *gi
8888
}
8989
verification := commit.Commit.Verification
9090
if verification == nil || !*verification.Verified {
91+
slogs.Logr.Info("Commit is not verified", "commit_sha", commit.GetSHA(), "author", commit.Commit.Author.GetName(), "email", commit.Commit.Author.GetEmail(), "reason", verification.GetReason())
9192
return true, nil
9293
}
9394
}

0 commit comments

Comments
 (0)