Skip to content

Add CODEOWNERS guardrail for mandatory owner-reviewed merges to main - #4

Merged
pangwangshu merged 1 commit into
mainfrom
copilot/lock-main-branch
Jun 11, 2026
Merged

pangwangshu merged 1 commit into
mainfrom
copilot/lock-main-branch

Conversation

Copilot AI commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

This change prepares the repository for public sharing by enforcing owner-driven review policy on main when combined with branch ruleset protections. It ensures PRs can require explicit approval from @pangwangshu via Code Owners.

  • Ownership enforcement

    • Added repository-wide CODEOWNERS mapping so all paths require owner review when “Require review from Code Owners” is enabled in branch rulesets.
  • Branch protection integration

    • Supports ruleset configuration for locked main (no direct pushes/force-push/deletion, PR-only merges, required approvals, admin enforcement, no bypass).
# .github/CODEOWNERS
* @pangwangshu

@pangwangshu
pangwangshu marked this pull request as ready for review June 11, 2026 06:56
@pangwangshu
pangwangshu merged commit 2a32a24 into main Jun 11, 2026
2 checks passed
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.

2 participants