[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:14:06 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:

Actually, I think in order to add this, we would need to run this action when the Draft flag is removed from the PR, but I don't see an event for that.

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


More information about the llvm-commits mailing list