Skip to content

DO-NOT-MERGE - GH-55163: [CI] Replace the PR Limit workflow with the .asf.yaml pull request creation cap - #55164

Draft
rok wants to merge 1 commit into
apache:mainfrom
rok:gh-pr-limit-creation-cap
Draft

rok wants to merge 1 commit into
apache:mainfrom
rok:gh-pr-limit-creation-cap

Conversation

@rok

@rok rok commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Rationale for this change

NOTE: do not merge before apache/infrastructure-asfyaml#135 is merged.
See #55163 and #51200.

What changes are included in this PR?

Removes .github/workflows/pr_limit.yml worflow and uses a .asf.yaml setting instead.

Are these changes tested?

Hopefully by CI.

Are there any user-facing changes?

Only CI users.

Was AI used for this PR?

In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

… pull request creation cap

GitHub's native pull request creation cap can now be configured in
.asf.yaml (apache/infrastructure-asfyaml#111), so configure it there
with the same limit and remove the workflow and its helper script.
Draft pull requests are included to match the workflow's behaviour.

Update the contributor docs: GitHub refuses to open a pull request over
the limit instead of closing it afterwards with a comment, and the cap
only exempts users with write access.
Copilot AI balanced review requested due to automatic review settings October 23, 2026 17:30
@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #55163 has been automatically assigned in GitHub to PR creator.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The supported configuration, workflow removal, and documentation consistently implement the intended policy change, with no unresolved findings.

No open issues 🎉

What changed in this PR

Replaces Arrow’s PR-limit workflow with GitHub’s native creation cap configured through .asf.yaml, as proposed in #55163.

Changes:

  • Caps contributors without write access at three open pull requests, including drafts.
  • Removes the workflow, enforcement script, and automatic closure message.
  • Updates contributor documentation to explain creation-time blocking and the removal of the triage-access exemption.
File Description
docs/​source/​developers/​bug_reports.rst Documents the native cap and updated access exemption.
.github/​workflows/​pr_limit/​comment.md Removes the obsolete closure message.
.github/​workflows/​pr_limit/​check.js Removes custom PR-limit enforcement.
.github/​workflows/​pr_limit.yml Removes the replaced GitHub Actions workflow.
.asf.yaml Enables the three-PR creation cap, including drafts.

Review effort: Balanced

@rok rok changed the title GH-55163: [CI] Replace the PR Limit workflow with the .asf.yaml pull request creation cap DO-NOT-MERGE - GH-55163: [CI] Replace the PR Limit workflow with the .asf.yaml pull request creation cap Oct 23, 2026
@github-actions
github-actions Bot marked this pull request as draft October 23, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants