Repository navigation
fix: do not head a pull request title failure "Commit rejected" - #713
Conversation
--pr-title and --ai-attribution-only check a pull or merge request title or description, not a commit, yet a failure printed "Commit rejected by Commit Check" above it. Print the neutral "Rejected by Commit Check" for them instead.
|
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 35 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #713 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 15 15
Lines 2742 2743 +1
Branches 546 546
=========================================
+ Hits 2742 2743 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merging this PR will not alter performance1 warning
Comparing Footnotes
|



What
--pr-titleand--ai-attribution-onlycheck a pull or merge request title or description. When one fails, the header now reads "Rejected by Commit Check" instead of "Commit rejected by Commit Check".Why
The text under test is not a commit, so "Commit rejected" sends a GitLab or Bitbucket user looking for a commit to fix. "Rejected by Commit Check" is the neutral header the CLI already prints when failures span more than one subject. The JSON output and the Action are unchanged; only the text header differs.
Before vs after
Tests
New parametrized
TestPrTitle::test_the_header_does_not_call_the_text_a_commitcovers both flags; it fails without the fix. 1721 passed, coverage 100%, ruff clean (the one local failure,test_load_config_file_permission_error, only happens when tests run as root).