[llvm] workflows/pr-receive: Ignore draft pull requests (PR #66578)

via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 16 07:51:02 PDT 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-github-workflow

<details>
<summary>Changes</summary>

This prevent users from being subscribed automatically to draft pull requests.
---
Full diff: https://github.com/llvm/llvm-project/pull/66578.diff


1 Files Affected:

- (modified) .github/workflows/pr-receive.yml (+6) 


``````````diff
diff --git a/.github/workflows/pr-receive.yml b/.github/workflows/pr-receive.yml
index d796920370e27a9..13f1a883cf8ff67 100644
--- a/.github/workflows/pr-receive.yml
+++ b/.github/workflows/pr-receive.yml
@@ -3,6 +3,11 @@
 name: PR Receive
 on:
   pull_request_target:
+    types:
+      - opened
+      - reopened
+      - ready_for_review
+      - synchronize
 
 permissions:
   contents: read
@@ -15,6 +20,7 @@ jobs:
     # to rebase.  We want to ignore these pull requests to avoid excessive
     # notifications.
     if: github.repository == 'llvm/llvm-project' &&
+        github.event.pull_request.draft == false &&
         github.event.pull_request.commits < 10
     steps:
       - name: Store PR Information

``````````

</details>


https://github.com/llvm/llvm-project/pull/66578


More information about the llvm-commits mailing list