Skip to content

ci: reject AI co-author trailers in commit history (#394) - #395

Merged
gnacho merged 1 commit into
mainfrom
ci/no-ai-coauthors
Sep 22, 2026
Merged

gnacho merged 1 commit into
mainfrom
ci/no-ai-coauthors

Conversation

@gnacho

@gnacho gnacho commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Adds a commit-hygiene workflow that fails when any commit in a PR, or pushed to main, carries an AI co-author trailer (Co-Authored-By: Claude and friends). It scans trailer lines only, so commit subjects and bodies stay free text.

Why: AI co-author trailers reached main once (#337, merge commit path) because the previous safeguard was a manual step tied to squash merges. With this gate the check is enforced for external and own contributions alike.

The gate script was verified locally against synthetic commits: fails on an AI trailer, passes clean ranges.

Closes #394

Squash merges already got a clean body by hand, but merge commits and
pushes had no gate, and a manual checklist step failed once (#337). This
workflow fails any PR or push to main whose commits carry an AI co-author
trailer, scanning trailer lines only.

Closes #393
@gnacho
gnacho merged commit e83f1a7 into main Sep 22, 2026
1 check passed
@gnacho
gnacho deleted the ci/no-ai-coauthors branch September 22, 2026 16:50
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.

ci: reject AI co-author trailers in commit history

1 participant