Copilot commented on code in PR #51200:
URL: https://github.com/apache/arrow/pull/51200#discussion_r3956943741
##########
docs/source/developers/bug_reports.rst:
##########
@@ -237,6 +237,18 @@ still active.
``Status: needs champion`` are confirmed-wanted enhancements that need
a contributor. See :ref:`finding-issues` for more.
+.. _pr-limit:
+
+Limit on concurrent pull requests
++++++++++++++++++++++++++++++++++
+
+Due to the increase in pull requests opened by AI bots, and in order to keep
+the review queue manageable, contributors without write access to the
+repository may have at most **3 pull requests open at the same time**.
+A pull request opened beyond that limit is automatically closed by a GitHub
+Actions workflow, with a comment explaining why. Once one of your other pull
+requests has been merged or closed, you can reopen it.
Review Comment:
The reopening guidance implies that closing/merging just one other PR is
always sufficient, but if a contributor is significantly over the limit (e.g.
they already had many open PRs before this workflow existed), they may need to
close multiple PRs before reopening will succeed. Consider wording this in
terms of having fewer than 3 *other* open PRs, and optionally mention that a
committer can reopen on their behalf even while they’re over the limit.
##########
.github/workflows/pr_limit/comment.md:
##########
@@ -0,0 +1,31 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+Thanks for opening a pull request!
+
+**This pull request has been automatically closed because you currently have
${OPEN_COUNT} open pull requests, which is more than the limit of ${PR_LIMIT}.**
+
+Due to the increase in pull requests opened by AI bots, and in order to keep
the review queue manageable, Apache Arrow limits contributors without write
access to at most ${PR_LIMIT} concurrently open pull requests. This helps make
sure each pull request gets the attention it needs and that work in progress
does not go stale.
+
+Once one of [your other open pull
requests](https://github.com/apache/arrow/pulls/${USERNAME}) has been merged or
closed, you are welcome to reopen this one.
Review Comment:
This reopening instruction assumes the user was only 1 PR over the limit. If
someone is well over the limit (e.g. already had many open PRs when this
workflow was introduced), closing/merging a single PR won’t necessarily make
reopening succeed. Wording it as “fewer than ${PR_LIMIT} other open PRs” is
more accurate.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]