Skip to content

Apache DataFusion SQL Query Engine

ci: Enforce PR limit to 3 for non-committers (#25973)

Yongting You60477917bd9e
diff --git a/.asf.yaml b/.asf.yaml
index 1307c8759b..998e4d5781 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -118,6 +118,13 @@ github:
allow_auto_merge: true
# auto-delete head branches after being merged
del_branch_on_merge: true
+ # Limit open pull requests per user without write access.
+ #
+ # With coding agents, the number of open PRs now far exceeds our review capacity.
+ # Setting a limit helps reviewers focus on fewer PRs at a time.
+ creation_cap:
+ enabled: true
+ max_open_pull_requests: 3
# publishes the content of the `asf-site` branch to
# https://datafusion.apache.org/
diff --git a/docs/source/contributor-guide/index.md b/docs/source/contributor-guide/index.md
index d6a16680dd..a7d650c54e 100644
--- a/docs/source/contributor-guide/index.md
+++ b/docs/source/contributor-guide/index.md
@@ -91,6 +91,11 @@ committer who approved your PR to help remind them to merge it.
## Creating Pull Requests
+With coding agents, the number of open PRs now far exceeds our review capacity.
+To help reviewers focus on fewer PRs, users without write access are limited to
+**3 open, non-draft PRs** at a time. If you reach the limit, wait for existing PRs
+to be merged or close them until you have fewer than 3 before opening another.
+
When possible, we recommend splitting your contributions into multiple smaller focused PRs rather than large PRs (500+ lines) because:
1. The PR is more likely to be reviewed quickly -- our reviewers struggle to find the contiguous time needed to review large PRs.