ci: make review only fire on non draft pr creation
This commit is contained in:
parent
c3c9003dbb
commit
3181c68cbb
1 changed files with 3 additions and 2 deletions
5
.github/workflows/review.yml
vendored
5
.github/workflows/review.yml
vendored
|
|
@ -9,10 +9,11 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
check-guidelines:
|
check-guidelines:
|
||||||
if: |
|
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_name == 'issue_comment' &&
|
||||||
github.event.issue.pull_request &&
|
github.event.issue.pull_request &&
|
||||||
startsWith(github.event.comment.body, '/review'))
|
startsWith(github.event.comment.body, '/review'))
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue