Repository navigation
fix: don't mark a subject red when only its author is wrong - #339
Conversation
When a commit failed only CC017 (an AI tool as its author), the diff showed its subject as a red line, as if the subject had to change. The subject is now red only when the advice is about it. An empty message also no longer shows the commit's author where its subject would be.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 41 minutes. View limit details
Pre-merge checks:
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #339 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 1034 1038 +4
=========================================
+ Hits 1034 1038 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Two small mistakes in the new report, both from treating any rule's value as if it were the commit's subject.
-line in the diff, which reads as "this subject has to go". The subject is now red only when the advice is about it (a type, a length, a missing body, a branch name). Otherwise it stays as a grey context line above the advice, as it already does for a fix on another line.Jane Dev <jane@example.com>) where the subject goes in the "All checks" listing, because CC017's value is the author. An AI rule's value now never stands in for the subject, so the row shows only the hash.Before and after
ai_attribution = "forbid", one commit made as Claude with a clean message, one with an empty message:Tests
main.pycoverage stays at 100%.