[llvm] workflows/pr-receive: Ignore draft pull requests (PR #66578)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 16 07:49:48 PDT 2023
https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/66578
This prevent users from being subscribed automatically to draft pull requests.
>From 26b654e4658b2fd7cecacc08dd88c5a8b80368cc Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Thu, 14 Sep 2023 22:09:01 -0700
Subject: [PATCH] workflows/pr-receive: Ignore draft pull requests
This prevent users from being subscribed automatically to draft pull requests.
---
.github/workflows/pr-receive.yml | 6 ++++++
1 file changed, 6 insertions(+)
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
More information about the llvm-commits
mailing list