← Back to Pull requests

GH-55475: [Dev] Use merge button instead of merge script #55484

Closed
unknown closed this pull request without merging on Nov 27, 2026 10:03 UTC
View on GitHub
unknown unknown commented on Nov 10, 2026 17:12 UTC
Author

Rationale for this change

Committers currently need a GitHub personal access token and dev/merge_arrow_pr.py to merge pull requests. This change lets committers use GitHub's "Squash and merge" button directly while preserving automatic issue closure, milestone tracking, and release-note committer counts.

What changes are included in this PR?

Automatic issue closure with partial-fix opt-out (.github/boring-cyborg.yml, .github/pull_request_template.md): For PRs targeting main, Boring Cyborg populates GitHub Issue: Closes #XXX so GitHub natively closes and links the issue on merge. Changing Closes to Refs keeps the issue open for partial fixes and is preserved by the bot. The non-blocking "PR Title" check no longer accepts WIP: prefixes, and the template guidance lives inside the placeholder so nothing leaks into squash commit messages.
Self-healing milestone assignment from the commit graph (dev/archery/archery/release/, .github/workflows/dev_update_milestones.yml): Adds archery release update-milestones and runs it every 6 hours (plus workflow_dispatch) to set milestones on closed, unmilestoned issues referenced by GH-XXX commits since the last major release tag. Milestones are chosen from branch membership (maint-X.0.0 vs. the next open major release), existing milestones are never overwritten, and missed cases (such as [skip ci] commits or manually closed issues) recover automatically.
GitHub-based patch committer counting (dev/archery/archery/release/, dev/archery/setup.py, dev/release/post-04-website.sh): Adds archery release committers to count merged PRs via GitHub GraphQL instead of Signed-off-by: commit trailers, and updates post-04-website.sh to load GH_TOKEN via utils-env.sh and use it.
Developer and release documentation (dev/README.md, docs/source/developers/): Documents merging with the GitHub button, the Closes/Refs convention, the scheduled milestone workflow, and running archery release update-milestones before curating a release. dev/merge_arrow_pr.py remains unchanged and usable during the transition.

Are these changes tested?

Added unit tests in dev/archery/archery/release/tests/test_release.py covering count_committers and update_milestones (maintenance branch cuts, cherry-picks, partial-to-closing spans, NOT_PLANNED/open/existing-milestone/PR/NOT_FOUND handling, dry_run, and missing next major milestone).
Verified both new Archery commands live against apache/arrow (archery release update-milestones --dry-run and archery release committers).
Verified dev/archery tests, linters, docs build, and release tests in CI.

Are there any user-facing changes?

No.

Was AI used for this PR?

PR code and description written by:

  • Human

  • AI
  • Reviewed before submission by:

  • Human

  • AI

  • Not reviewed
  • GitHub Issue: #55475
  • Diff: 368 lines (+276 / -92) across 4 files Reviewer: Reranko05 Review duration: 24050m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 368 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.354
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #55484"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.8% (MEDIUM) · Higher = larger blast radius
    42.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.9% · Safe to merge
    16.9%
    Repository