diff --git a/.asf.yaml b/.asf.yaml index 97833973a..ff16af4b6 100644 --- a/.asf.yaml +++ b/.asf.yaml @@ -10,6 +10,41 @@ github: branches: includes: - "~DEFAULT_BRANCH" + excludes: [] + bypass_teams: + - root + restrict_deletion: true + restrict_force_push: true + # every review conversation has to be resolved before a merge + required_conversation_resolution: true + required_pull_request_reviews: + required_approving_review_count: 1 + # the approval has to come after the last push, so it covers the head + require_last_push_approval: true + # checks reported by GitHub Actions workflows (CodeQL included) + required_status_checks: + - name: "Build+Test on Linux/JDK 21" + app_slug: "github-actions" + - name: "Build+Test on Linux/JDK 25" + app_slug: "github-actions" + - name: "License headers" + app_slug: "github-actions" + - name: "UI tests (db)" + app_slug: "github-actions" + - name: "UI tests (db-oidc)" + app_slug: "github-actions" + - name: "UI tests (oidc)" + app_slug: "github-actions" + - name: "Analyze (java)" + app_slug: "github-actions" + - name: "Analyze (javascript)" + app_slug: "github-actions" + # no workflow runs on pull requests to release branches, so requiring + # checks there would block every merge + - name: "Release Branch Protection" + type: branch + branches: + includes: - "release/*" - "rel/*" excludes: [] @@ -17,19 +52,12 @@ github: - root restrict_deletion: true restrict_force_push: true + # every review conversation has to be resolved before a merge + required_conversation_resolution: true required_pull_request_reviews: required_approving_review_count: 1 # the approval has to come after the last push, so it covers the head require_last_push_approval: true - required_status_checks: - - "Build+Test on Linux/JDK 21" - - "Build+Test on Linux/JDK 25" - - "License headers" - - "UI tests (db)" - - "UI tests (db-oidc)" - - "UI tests (oidc)" - - "Analyze (java)" - - "Analyze (javascript)" - name: "6.1.x Branch Protection" type: branch branches: @@ -40,14 +68,23 @@ github: - root restrict_deletion: true restrict_force_push: true + # every review conversation has to be resolved before a merge + required_conversation_resolution: true required_pull_request_reviews: required_approving_review_count: 1 # the approval has to come after the last push, so it covers the head require_last_push_approval: true + # checks reported by GitHub Actions workflows (CodeQL included) required_status_checks: - - "Build+Test on Linux/JDK 11" - - "Build+Test on Linux/JDK 17" - - "Build+Test on Linux/JDK 21" - - "Build+Test on Linux/JDK 25" - - "Analyze (java)" - - "Analyze (javascript)" + - name: "Build+Test on Linux/JDK 11" + app_slug: "github-actions" + - name: "Build+Test on Linux/JDK 17" + app_slug: "github-actions" + - name: "Build+Test on Linux/JDK 21" + app_slug: "github-actions" + - name: "Build+Test on Linux/JDK 25" + app_slug: "github-actions" + - name: "Analyze (java)" + app_slug: "github-actions" + - name: "Analyze (javascript)" + app_slug: "github-actions"