Skip to content

Commit 3793d9d

Browse files
authored
feat: sync AI attribution governance from commit-check v2.11.0 (#16)
* feat: add AI attribution governance support from commit-check v2.11.0 Sync the new AI attribution governance feature from commit-check v2.11.0: - Bump minimum commit-check dependency to >=2.11.0 - Add 'ai_attribution' to validate_commit_message and validate_commit_context check lists so the rule is actually executed - Update README with AI attribution governance documentation When config [commit] ai_attribution = "forbid" is set, commits containing known AI tool signatures (Claude Code, GitHub Copilot, etc.) will be rejected. * docs: Update README with AI attribution governance details Added information about AI attribution governance in v2.11.0+.
1 parent 48ea465 commit 3793d9d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ classifiers = [
2525
"Topic :: Software Development",
2626
]
2727
dependencies = [
28-
"commit-check>=2.7.0,<3",
28+
"commit-check>=2.11.0,<3",
2929
"mcp>=1.27.0,<2"
3030
]
3131
dynamic = ["version"]

src/commit_check_mcp/server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def _validate_message(
162162
"allow_empty_commits",
163163
"allow_fixup_commits",
164164
"allow_wip_commits",
165+
"ai_attribution",
165166
],
166167
ValidationContext(stdin_text=message, config=cfg),
167168
cfg,
@@ -281,6 +282,7 @@ def _validate_all(
281282
"allow_empty_commits",
282283
"allow_fixup_commits",
283284
"allow_wip_commits",
285+
"ai_attribution",
284286
],
285287
ValidationContext(stdin_text=message, config=cfg),
286288
cfg,

0 commit comments

Comments
 (0)