Skip to content

workflows/pr-receive: Ignore draft pull requests #66578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

tstellar
Copy link
Collaborator

This prevent users from being subscribed automatically to draft pull requests.

This prevent users from being subscribed automatically to draft pull requests.
@llvmbot
Copy link
Member

llvmbot commented Sep 16, 2023

@llvm/pr-subscribers-github-workflow

Changes

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 --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

Copy link
Contributor

@cor3ntin cor3ntin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@tstellar tstellar merged commit 7d6c3a2 into llvm:main Sep 26, 2023
legrosbuffle pushed a commit to legrosbuffle/llvm-project that referenced this pull request Sep 29, 2023
This prevent users from being subscribed automatically to draft pull
requests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

4 participants