From d8ffaa971bb2d73aaa2d420434caeda8a57c6a34 Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Sun, 1 Nov 2026 07:38:44 +0100 Subject: [PATCH] MINOR: Require approval and deletion after merge This PR adds three things: - Automatic deletion of the branch after merge, to keep things tidy. - Require approval before merging, to avoid merging things without a review. Or committing directly to main through the UI, without going through a PR. - Require a linear history. I think we already do this by enforcing squash above on line 31, but good to make it explicit as well. --- .asf.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.asf.yaml b/.asf.yaml index 10973b7283..e3f736d74c 100644 --- a/.asf.yaml +++ b/.asf.yaml @@ -31,6 +31,17 @@ github: squash: true rebase: false + pull_requests: + # auto-delete head branches after being merged + del_branch_on_merge: true + + protected_branches: + main: + required_pull_request_reviews: + required_approving_review_count: 1 + + required_linear_history: true + features: wiki: false issues: true