Skip to content

ci: reject commit messages with co-author or tool attribution lines - #16

Merged
arasovic merged 1 commit into
mainfrom
ci/commit-message-check
Oct 10, 2026
Merged

arasovic merged 1 commit into
mainfrom
ci/commit-message-check

Conversation

@arasovic

Copy link
Copy Markdown
Owner

Rebase merges keep each commit's message as written, so a Co-Authored-By: trailer or a "Generated with Claude…" line in a PR commit would land on main.

A new step in the check job scans every non-merge commit in the PR and fails when a message has such a line. The match is case-insensitive; Co-Authored-By: counts only at the start of a line, so a message that mentions it inline passes.

Tried in a throwaway repo: of four commits, the two with a trailer or attribution line failed, the clean one and the inline mention passed. The README's Develop section lists the new check.

@arasovic
arasovic merged commit 9f1bef6 into main Oct 10, 2026
1 check passed
@arasovic
arasovic deleted the ci/commit-message-check branch October 10, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant