Skip to content

Commit 3181c68

Browse files
committed
ci: make review only fire on non draft pr creation
1 parent c3c9003 commit 3181c68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/review.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ on:
99
jobs:
1010
check-guidelines:
1111
if: |
12-
github.event_name == 'pull_request_target' ||
12+
(github.event_name == 'pull_request_target' &&
13+
github.event.pull_request.draft == false) ||
1314
(github.event_name == 'issue_comment' &&
1415
github.event.issue.pull_request &&
15-
startsWith(github.event.comment.body, '/review'))
16+
startsWith(github.event.comment.body, '/review'))
1617
runs-on: ubuntu-latest
1718
permissions:
1819
contents: read

0 commit comments

Comments
 (0)