Skip to content

ci: add AI direct commit attribution check workflow#42

Merged
dev4unet merged 1 commit into
developfrom
feat-add-ai-trace-check
Jun 12, 2026
Merged

ci: add AI direct commit attribution check workflow#42
dev4unet merged 1 commit into
developfrom
feat-add-ai-trace-check

Conversation

@dev4unet

Copy link
Copy Markdown
Collaborator

Summary

Add a GitHub Actions workflow that blocks pull requests containing AI attribution trailers in commit messages and AI tool emails in author/committer fields from being merged into protected branches.

Following the community proposal from 2026-05-08 (suggesting that commits and pull requests should be authored by humans rather than AI tools, since AI-attributed commits may have unclear implications under DCO/Sign-off/CLA frameworks until the project policy is finalized), this workflow:

  • Scans commits for AI attribution trailers and AI tool emails in both commit messages and author/committer fields.
  • Fails the status check on a match and posts a PR comment explaining the policy intent and the required fix steps.
  • Runs on pull_request and push to protected branches.

Verified

This workflow has been merged into MZC-CSC's C-Mig related forks (cm-mayfly, cm-butterfly, cm-ant, cb-spider, cloud-migrator) and its blocking behavior verified via dummy commit with AI trailer.

Canonical source: https://github.com/MZC-CSC/cmig-workflow/blob/main/conf/workflow-templates/no-ai-trace.yml

Add a GitHub Actions workflow that blocks pull requests containing AI attribution trailers in commit messages and AI tool emails in author/committer fields from being merged into protected branches.

The workflow runs on pull_request and push events. On detection it fails the status check and posts a failure comment explaining the policy intent (DCO/Sign-off/CLA implications, the 2026-05-08 community proposal) and the required fix steps (amend or interactive rebase).

Canonical source: https://github.com/MZC-CSC/cmig-workflow/blob/main/conf/workflow-templates/no-ai-trace.yml
@dev4unet dev4unet merged commit 1ffadc5 into develop Jun 12, 2026
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