Skip to content

ci: fail PRs that carry AI attribution - #2224

Merged
CodeMazeBlog merged 1 commit into
mainfrom
ci/no-ai-attribution
Sep 17, 2026
Merged

CodeMazeBlog merged 1 commit into
mainfrom
ci/no-ai-attribution

Conversation

@CodeMazeBlog

Copy link
Copy Markdown
Owner

Adds a check so that commits and PRs in this public repo carry the Code Maze name only.

  • New job No AI attribution in PR Build. It reads the PR title, the PR description and each commit message in the PR, and fails on AI co-author trailers or "generated with" footers. Human co-authors pass.
  • CI result now depends on it, so a match blocks the merge. No branch protection change is needed.
  • The workflow also runs when the PR title or description is edited, so an edit cannot slip past the check.
  • Header comment corrected: CI result is a required check on main.

Squash merges build their message from the PR commits, so a clean PR gives a clean commit on main.

Adds a no-ai-attribution job to PR Build. It checks the PR title, the PR description and every PR commit message for AI co-author trailers and generated-with footers. CI result now depends on it, so a match blocks the merge. The workflow also re-runs when the PR title or description is edited.

Also corrects the header comment: CI result is a required check on main.
@CodeMazeBlog
CodeMazeBlog merged commit b340cc8 into main Sep 17, 2026
4 checks passed
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