ci: make review only fire on non draft pr creation
This commit is contained in:
3
.github/workflows/review.yml
vendored
3
.github/workflows/review.yml
vendored
@@ -9,7 +9,8 @@ on:
|
||||
jobs:
|
||||
check-guidelines:
|
||||
if: |
|
||||
github.event_name == 'pull_request_target' ||
|
||||
(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, '/review'))
|
||||
|
||||
Reference in New Issue
Block a user