Scope ownership to the paths that can do harm - #4
Merged
Conversation
This repository is about to be public, and its collaborator list is inherited from the organisation, so roughly a dozen accounts could otherwise approve a change and land it. Ownership of the whole tree, plus a merge restriction on main, narrows both to the two people who maintain it. The previous file also named a team that GitHub rejected. A code-owner team must be publicly visible, and that one is secret, so the line was ignored and the ownership it described did not exist.
davidmckayv
force-pushed
the
codeowners-paths
branch
from
August 17, 2026 03:13
93d035a to
0862cf2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the whole-tree
*rule with path-scoped ownership, following the shape OpenTag uses, adapted to the paths OpenBot actually has.Also drops
@CopilotKit/engineering. GitHub requires a code-owner team to be publicly visible, and that team is secret, so the line was silently ignored and the ownership it described never existed. The same line is broken in OpenTag and@CopilotKit/demois broken in CopilotKit, both of which are worth a separate heads-up.Reviews from people without write access do not count toward the required approval, so this does not open anything to drive-by approvals.