Skip to content

Commit 59e7939

Browse files
committed
test: add intentional ruff violation to verify github-pr-review reporter
Adds an unused variable in check_body to confirm the action posts inline review comments on the PR diff. Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
1 parent 30c2294 commit 59e7939

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/git_commit_guard/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ def check_imperative(desc, result):
169169

170170

171171
def check_body(lines, result):
172+
separator = lines[1] if len(lines) > 1 else ""
172173
if len(lines) < 3: # noqa: PLR2004
173174
result.error("missing body")
174175
return

0 commit comments

Comments
 (0)