✅(ci) fix false print detection in commit
The method call `.thumbprint(...)` was detected as a print statement. Restrict detection to words `print` and `pprint`.
This commit is contained in:
2
.github/workflows/people.yml
vendored
2
.github/workflows/people.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
|||||||
run: git log
|
run: git log
|
||||||
- name: Enforce absence of print statements in code
|
- name: Enforce absence of print statements in code
|
||||||
run: |
|
run: |
|
||||||
! git diff origin/${{ github.event.pull_request.base.ref }}..HEAD -- . ':(exclude)**/people.yml' | grep "print("
|
! git diff origin/${{ github.event.pull_request.base.ref }}..HEAD -- . ':(exclude)**/people.yml' | grep -E "(\bprint\(|\bpprint\()"
|
||||||
- name: Check absence of fixup commits
|
- name: Check absence of fixup commits
|
||||||
run: |
|
run: |
|
||||||
! git log | grep 'fixup!'
|
! git log | grep 'fixup!'
|
||||||
|
|||||||
Reference in New Issue
Block a user