Skip to content

Allow AI co-author trailers in commit messages - #16

Open
fuziontech wants to merge 1 commit into
masterfrom
james/ci-allow-ai-coauthor-trailers
Open

Allow AI co-author trailers in commit messages#16
fuziontech wants to merge 1 commit into
masterfrom
james/ci-allow-ai-coauthor-trailers

Conversation

@fuziontech

Copy link
Copy Markdown
Member

Summary

Upstream's airlift/github-actions/check-commit-messages rejects any Co-authored-by / Assisted-by trailer that credits an AI model or coding tool. This fork writes some of its commits with those tools and wants them credited, so:

  • .github/scripts/check-commit-messages.py: the action's check.py vendored at the pinned revision (1652e24) with one addition, an --allow-ai-attribution flag that drops the attribution rule. Subject style/length and description wrapping rules are unchanged.
  • .github/workflows/ci.yml: the check-commit-messages job runs the vendored script with the flag instead of the action. Same base-ref validation, same fetch-depth: 0 checkout.

Why now

#14 and #15 fail only this rule. #15's commits also exceed the 60-character subject limit and will be reworded separately; that rule is kept on purpose.

Test plan

https://claude.ai/code/session_01WCY5Jf2BQPCVKJTZU1TpEe

Upstream's check-commit-messages action rejects any Co-authored-by or
Assisted-by trailer that credits an AI model or coding tool. This fork
writes some of its commits with those tools and wants them credited.

Vendor the action's check.py at the pinned revision with one addition,
an --allow-ai-attribution flag that drops the attribution rule, and run
it from ci.yml instead of the action. Every other rule stays: subject
style and length, description wrapping.

Claude-Session: https://claude.ai/code/session_01WCY5Jf2BQPCVKJTZU1TpEe
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