-
Notifications
You must be signed in to change notification settings - Fork 0
Update CODEOWNERS to assign new reviewers #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,13 +1,13 @@ | ||||||||||||
| # CODEOWNERS - Automatically assigns reviewers based on file paths | ||||||||||||
|
|
||||||||||||
| # Default owner for everything | ||||||||||||
| * @groupthinking | ||||||||||||
| * @codex | ||||||||||||
|
|
||||||||||||
| # Frontend | ||||||||||||
| *.tsx @groupthinking | ||||||||||||
| *.jsx @groupthinking | ||||||||||||
| *.css @groupthinking | ||||||||||||
| /frontend/ @groupthinking | ||||||||||||
| *.tsx @Vercel | ||||||||||||
| *.jsx @Vercel | ||||||||||||
| *.css @Vercel | ||||||||||||
|
Comment on lines
+7
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Core TypeScript ( Suggested FixAdd a specific rule to the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||||||||||||
| /frontend/ @Vercel | ||||||||||||
|
Comment on lines
+7
to
+10
|
||||||||||||
|
|
||||||||||||
| # Backend | ||||||||||||
| *.py @groupthinking | ||||||||||||
|
|
@@ -16,11 +16,11 @@ | |||||||||||
| /api/ @groupthinking | ||||||||||||
|
|
||||||||||||
| # Infrastructure | ||||||||||||
| /.github/ @groupthinking | ||||||||||||
| *.yml @groupthinking | ||||||||||||
| *.yaml @groupthinking | ||||||||||||
| Dockerfile @groupthinking | ||||||||||||
| /.github/ @Claude | ||||||||||||
| *.yml @Claude | ||||||||||||
| *.yaml @Claude | ||||||||||||
| Dockerfile @Claude | ||||||||||||
|
Comment on lines
+19
to
+22
|
||||||||||||
|
|
||||||||||||
| # Documentation | ||||||||||||
| *.md @groupthinking | ||||||||||||
| /docs/ @groupthinking | ||||||||||||
| *.md @Copilot | ||||||||||||
|
||||||||||||
| *.md @Copilot | |
| *.md @Copilot | |
| /.github/copilot-instructions.md @Copilot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The ordering of rules in CODEOWNERS causes markdown files in the .github/ directory to be assigned to @Copilot instead of the intended infrastructure owner, @Claude.
Severity: MEDIUM
Suggested Fix
To ensure infrastructure documentation is owned by the correct team, move the /.github/ @Claude rule to a position after the *.md @Copilot rule. This will make the more specific directory rule take precedence for files within that directory, aligning with the "last match wins" principle.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: .github/CODEOWNERS#L25
Potential issue: In the `CODEOWNERS` file, the rule `*.md @Copilot` on line 25 overrides
the more specific `/.github/ @Claude` rule on line 19 for any markdown files within the
`.github/` directory. This is due to GitHub's "last matching pattern wins" logic. As a
result, infrastructure-related documentation, such as `.github/copilot-instructions.md`,
will be incorrectly assigned to the `@Copilot` team for review instead of the intended
infrastructure owner, `@Claude`. This contradicts the stated intent of the pull request,
which separates infrastructure and general documentation ownership.
Did we get this right? 👍 / 👎 to inform future reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a potential issue with the ordering of the Infrastructure and Documentation rules. In a CODEOWNERS file, the last matching rule takes precedence.
With the current order, if a Markdown file (e.g., PULL_REQUEST_TEMPLATE.md) is added or modified inside the .github/ directory, the *.md @Copilot rule will override the /.github/ @Claude rule. This would assign the documentation team (@Copilot) as the reviewer for a file that is part of the repository's infrastructure, which should likely be owned by the infrastructure team (@Claude).
To ensure that the infrastructure team retains ownership of all files within the .github directory, I recommend swapping the Infrastructure and Documentation blocks. This will give the infrastructure rules higher precedence.
# Documentation
*.md @Copilot
/docs/ @Copilot
# Infrastructure
/.github/ @Claude
*.yml @Claude
*.yaml @Claude
Dockerfile @Claude
Copilot
AI
Feb 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The @Copilot owner appears to be assigning documentation ownership to an AI system (GitHub Copilot) rather than a human reviewer or valid GitHub team. CODEOWNERS requires valid GitHub usernames or organization teams. If @Copilot is intended to represent a team, it should use the organization team format (@org/copilot-team). If these are placeholder names intended for later replacement, they should be clearly marked as such or use valid fallback reviewers.
| *.md @Copilot | |
| /docs/ @Copilot | |
| *.md @codex | |
| /docs/ @codex |
Copilot
AI
Feb 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The repository does not contain a /docs/ directory. The CODEOWNERS file assigns ownership of /docs/ to @Copilot, but this directory doesn't exist. Documentation exists as .md files in the root directory (README.md, ARCHITECTURE.md, etc.), which are covered by the *.md pattern on line 25. The /docs/ rule on line 26 is unnecessary and creates confusion about where documentation actually resides in this repository.
| /docs/ @Copilot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default owner @codex on line 4 appears to be a generic/AI system name rather than a valid GitHub username or organization team. CODEOWNERS requires actual GitHub entities that can be assigned as reviewers. If @codex is meant to be a team, use the proper organization format (@org/codex). If this is a placeholder, it will cause GitHub to fail to assign reviewers when PRs are opened, leading to no automatic reviewer assignment for files not matching specific patterns.