[llvm] workflows/pr-receive: Ignore pull requests with 10 or more commits (PR #66320)

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 16 07:50:08 PDT 2023


================
@@ -10,7 +10,12 @@ permissions:
 jobs:
   pr-target:
     runs-on: ubuntu-latest
-    if: github.repository == 'llvm/llvm-project'
+    # Ignore PRs with more than 10 commits.  Pull requests with a lot of
+    # commits tend to be accidents usually when someone made a mistake while trying
+    # to rebase.  We want to ignore these pull requests to avoid excessive
+    # notifications.
+    if: github.repository == 'llvm/llvm-project' &&
+        github.event.pull_request.commits < 10
----------------
tstellar wrote:

PR for ignoring drafts: https://github.com/llvm/llvm-project/pull/66578

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


More information about the llvm-commits mailing list