Repository navigation
fix: name the AI-rules-only option --ai-attribution-only - #677
Conversation
--ai-only did not say what it limits the run to. --ai-attribution-only pairs with the --ai-attribution policy option and says it checks only the AI attribution of the text (CC013 to CC016). --ai-only, the name 2.20.1 shipped with, still works as a hidden alias.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #677 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 14 14
Lines 2518 2519 +1
Branches 488 488
=========================================
+ Hits 2518 2519 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merging this PR will not alter performance1 warning
Comparing Footnotes
|



Why
--ai-only(new in 2.20.1) does not say what it limits the run to. It runs only the AI attribution rules (CC013 to CC016), so text that is not a commit message, such as a pull request description, can be checked without the commit-message format rules.What changes
--ai-attribution-only, which pairs with the existing--ai-attributionpolicy option.--ai-onlykeeps working as a hidden alias, so scripts written against 2.20.1 do not break. It no longer appears in--help.Before and after
--help--ai-only check only the AI attribution of the message ...--ai-attribution-only check only the AI attribution of the message ...commit-check --ai-only < body.mdcommit-check --ai-attribution-only < body.mdChecks
pytest: 1600 passed, 100% line and branch coverage (the one failure istest_load_config_file_permission_error, which fails only when run as root).--help.ruff check,ruff format,mypyclean.Summary by CodeRabbit
--ai-attribution-onlyas the visible command-line option for running AI attribution checks. The existing--ai-onlyoption remains available as a hidden compatibility alias.