From 4826a7066cdb367c40fab9d5547e2f7e06ec0dd7 Mon Sep 17 00:00:00 2001 From: Thor Thor Date: Tue, 10 Feb 2026 12:41:52 -0600 Subject: [PATCH] fix: allow GitHub squash-merge in commit attribution (CI #38) --- tests/policy/commits_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/policy/commits_test.go b/tests/policy/commits_test.go index 8ce3953..eb29d38 100644 --- a/tests/policy/commits_test.go +++ b/tests/policy/commits_test.go @@ -20,6 +20,10 @@ func allowedCommit(an, ae, cn, ce string) bool { if an == "dependabot[bot]" && cn == "GitHub" { return true } + // GitHub squash-merge: author Thor Thor (verified email), committer GitHub + if an == allowedAuthorName && cn == "GitHub" && strings.Contains(ae, "codethor") { + return true + } return false }