Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Loading