ci: prevent review bot probe comments

This commit is contained in:
Bohdan Triapitsyn
2026-06-10 11:56:53 +03:00
parent ba786f3b89
commit 0153f8787d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ jobs:
review:
if: |
(github.event_name == 'pull_request_target' && github.event.pull_request.draft == false) ||
(github.event_name == 'issue_comment' && github.event.issue.pull_request && (startsWith(github.event.comment.body, '/oc-review') || contains(github.event.comment.body, ' /oc-review'))) ||
(github.event_name == 'pull_request_review_comment' && (startsWith(github.event.comment.body, '/oc-review') || contains(github.event.comment.body, ' /oc-review')))
(github.event_name == 'issue_comment' && github.event.issue.pull_request && github.event.comment.user.login != 'openchamber-bot[bot]' && (startsWith(github.event.comment.body, '/oc-review') || contains(github.event.comment.body, ' /oc-review'))) ||
(github.event_name == 'pull_request_review_comment' && github.event.comment.user.login != 'openchamber-bot[bot]' && (startsWith(github.event.comment.body, '/oc-review') || contains(github.event.comment.body, ' /oc-review')))
runs-on: ubuntu-latest
permissions:
contents: read