From 14eddd7e3cc5beee98a5d5f6da0a76a74417c615 Mon Sep 17 00:00:00 2001 From: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com> Date: Sun, 8 Nov 2026 22:03:38 +0000 Subject: [PATCH] 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. --- main.py | 4 +++- main_test.py | 2 +- requirements.txt | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 165c6f3..1f3bc36 100755 --- a/main.py +++ b/main.py @@ -810,7 +810,9 @@ def run_commit_check() -> tuple[int, list[ScopeResult]]: if (PR_BODY_ENABLED or ai_label_name()) and is_pr_event(): pr_body = get_pr_body() if pr_body: - scope = check_scope("PR description", ["--ai-only"], input_text=pr_body) + scope = check_scope( + "PR description", ["--ai-attribution-only"], input_text=pr_body + ) if PR_BODY_ENABLED: results.append(scope) else: diff --git a/main_test.py b/main_test.py index 7a9fead..c1c0746 100644 --- a/main_test.py +++ b/main_test.py @@ -3716,7 +3716,7 @@ def _run(self, pr_body_enabled, ai_label, body="Adds a parser."): def test_pr_body_is_a_scope_checked_with_the_ai_rules_only(self): results, mock_scope = self._run(True, "false") mock_scope.assert_called_once_with( - "PR description", ["--ai-only"], input_text="Adds a parser." + "PR description", ["--ai-attribution-only"], input_text="Adds a parser." ) self.assertEqual([r.label for r in results], ["PR description"]) diff --git a/requirements.txt b/requirements.txt index 30e0a9a..dc88ec2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ # Install commit-check CLI # For details please see: https://github.com/commit-check/commit-check -commit-check==2.20.1 +commit-check==2.20.2 # Interact with the GitHub API. PyGithub==2.10.0