[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
Thu Sep 14 22:07:42 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:

I think I'm going to add this in a separate pull request, because I want to write a separate commit message about ignoring drafts and I can't push more than two commits at once here.

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


More information about the llvm-commits mailing list