Skip to content

Commit 7d6c3a2

Browse files
authored
workflows/pr-receive: Ignore draft pull requests (llvm#66578)
This prevent users from being subscribed automatically to draft pull requests.
1 parent 35a364f commit 7d6c3a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/pr-receive.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
name: PR Receive
44
on:
55
pull_request_target:
6+
types:
7+
- opened
8+
- reopened
9+
- ready_for_review
10+
- synchronize
611

712
permissions:
813
contents: read
@@ -15,6 +20,7 @@ jobs:
1520
# to rebase. We want to ignore these pull requests to avoid excessive
1621
# notifications.
1722
if: github.repository == 'llvm/llvm-project' &&
23+
github.event.pull_request.draft == false &&
1824
github.event.pull_request.commits < 10
1925
steps:
2026
- name: Store PR Information

0 commit comments

Comments
 (0)