This is an automated email from the ASF dual-hosted git repository. pkarwasz pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git
The following commit(s) were added to refs/heads/main by this push: new 4fc3e3f Enable branch protection (#191) 4fc3e3f is described below commit 4fc3e3f4111e05a9c9f18736229913e142f713af Author: Piotr P. Karwasz <piotr.git...@karwasz.org> AuthorDate: Tue Jun 3 09:51:00 2025 +0200 Enable branch protection (#191) This change enables the same branch protection that was implemented in `logging-log4j2`. See apache/logging-log4j2#3582 and apache/logging-log4j2#3662 --- .asf.yaml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.asf.yaml b/.asf.yaml index 94ead2e..f80b938 100644 --- a/.asf.yaml +++ b/.asf.yaml @@ -45,7 +45,15 @@ github: features: issues: true - del_branch_on_merge: true + # Pull Request settings: + # https://github.com/apache/infrastructure-asfyaml#pull-request-settings + pull_requests: + # allow auto-merge + allow_auto_merge: true + # enable updating head branches of pull requests + allow_update_branch: true + # auto-delete head branches after being merged + del_branch_on_merge: true # Enforce squashing while merging PRs. # Otherwise, the git log gets polluted severely. @@ -54,7 +62,22 @@ github: merge: false rebase: false - # Prevent force pushes to primary branches + # Enforce Review-then-Commit protected_branches: main: + # All commits must be signed required_signatures: true + # All reviews must be addressed before merging + required_conversation_resolution: true + # Require checks to pass before merging + required_status_checks: + checks: + # The GitHub Actions app: 15368 + - app_id: 15368 + context: "build / build (ubuntu-latest)" + # The GitHub Advanced Security app: 57789 + - app_id: 57789 + context: "CodeQL" + # At least one positive review must be present + required_pull_request_reviews: + required_approving_review_count: 1