Skip to content

infra(.asf.yaml): require one approving review on main#818

Draft
potiuk wants to merge 1 commit into
mainfrom
infra/require-review-on-main
Draft

infra(.asf.yaml): require one approving review on main#818
potiuk wants to merge 1 commit into
mainfrom
infra/require-review-on-main

Conversation

@potiuk

@potiuk potiuk commented Jul 11, 2026

Copy link
Copy Markdown
Member

Now that Apache Magpie is an established Top-Level Project with its own PMC, this adds branch protection requiring at least one approving review from a committer before any PR merges into main, replacing the bootstrap posture where a maintainer could self-merge after CI green.

Change

protected_branches:
  main:
    required_pull_request_reviews:
      required_approving_review_count: 1
      dismiss_stale_reviews: true
  • dismiss_stale_reviews: true — a new push after approval dismisses the stale approval, so the approving reviewer signs off on the final state of the diff.
  • require_code_owner_reviews is left off — there is no CODEOWNERS file, so any committer's approval satisfies the requirement.

Notes

  • Split out from the status/docs PR docs: reflect Apache Magpie's established-TLP status #817 so the governance/infra change can be reviewed on its own. The two touch adjacent .asf.yaml comment lines, so whichever merges second will need a trivial rebase.
  • ASF Infra reconciles protected_branches within a few minutes of merge to main.

🤖 Generated with Claude Code

@potiuk potiuk marked this pull request as draft July 11, 2026 13:17
@potiuk

potiuk commented Jul 11, 2026

Copy link
Copy Markdown
Member Author

Drafted it to not merge it too early

Now that Apache Magpie is an established Top-Level Project with its own
PMC, add branch protection requiring at least one approving review from
a committer before any PR merges into `main`, replacing the bootstrap
posture where a maintainer could self-merge after CI green.

  required_pull_request_reviews:
    required_approving_review_count: 1
    dismiss_stale_reviews: true

dismiss_stale_reviews ensures the approving reviewer signs off on the
final state of the diff after any further pushes. require_code_owner_reviews
is left off — there is no CODEOWNERS file, so any committer's approval
satisfies the requirement.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@potiuk potiuk force-pushed the infra/require-review-on-main branch from d7409e8 to 23e35e9 Compare July 11, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant