Skip to content

chore: add CODEOWNERS to restrict merges to maintainer#763

Merged
sonukapoor merged 1 commit into
mainfrom
chore/issue-762-codeowners
Jun 26, 2026
Merged

chore: add CODEOWNERS to restrict merges to maintainer#763
sonukapoor merged 1 commit into
mainfrom
chore/issue-762-codeowners

Conversation

@sonukapoor

Copy link
Copy Markdown
Collaborator

Adds .github/CODEOWNERS with * @sonukapoor so every file in the repo requires @sonukapoor as a code owner.

This was the missing piece that allowed a contributor to self-merge a PR. With this file in place and "Require review from Code Owners" enabled in the main branch protection settings, no contributor can merge without an explicit approval from @sonukapoor.

After merging, update the main branch protection rule in GitHub Settings > Branches:

  • Enable "Require review from Code Owners"
  • Restrict push access to @sonukapoor only

Closes #762

@sonukapoor sonukapoor merged commit 83b58aa into main Jun 26, 2026
6 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.

chore: add CODEOWNERS file to restrict merge rights to maintainer

1 participant