Skip to content

Commit 14eddd7

Browse files
committed
chore: run commit-check 2.20.2 and its --ai-attribution-only name
2.20.2 renamed --ai-only to --ai-attribution-only; the old name stays a hidden alias, so this only switches the PR description check to the documented name.
1 parent 3ea1f76 commit 14eddd7

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎main.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,9 @@ def run_commit_check() -> tuple[int, list[ScopeResult]]:
810810
if (PR_BODY_ENABLED or ai_label_name()) and is_pr_event():
811811
pr_body = get_pr_body()
812812
if pr_body:
813-
scope = check_scope("PR description", ["--ai-only"], input_text=pr_body)
813+
scope = check_scope(
814+
"PR description", ["--ai-attribution-only"], input_text=pr_body
815+
)
814816
if PR_BODY_ENABLED:
815817
results.append(scope)
816818
else:

‎main_test.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3716,7 +3716,7 @@ def _run(self, pr_body_enabled, ai_label, body="Adds a parser."):
37163716
def test_pr_body_is_a_scope_checked_with_the_ai_rules_only(self):
37173717
results, mock_scope = self._run(True, "false")
37183718
mock_scope.assert_called_once_with(
3719-
"PR description", ["--ai-only"], input_text="Adds a parser."
3719+
"PR description", ["--ai-attribution-only"], input_text="Adds a parser."
37203720
)
37213721
self.assertEqual([r.label for r in results], ["PR description"])
37223722

‎requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Install commit-check CLI
22
# For details please see: https://github.com/commit-check/commit-check
3-
commit-check==2.20.1
3+
commit-check==2.20.2
44
# Interact with the GitHub API.
55
PyGithub==2.10.0

0 commit comments

Comments
 (0)