Skip to content
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

chore(CODEOWNERS): prefix directories with root slash #1573

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

thehowl
Copy link
Member

@thehowl thehowl commented Jan 23, 2024

Pull request #1572 marks the codeowner as @moul, in spite of what the configuration might suggest to a human reader.

Reading through GitHub's docs, this seems to come from the fact that if directories are not prefixed with a /, they are considered as applying to all files or directories with that name. (ie. foo matches /foo but also /src/foo).

I've added / to all directories in CODEOWNERS to fix this.

@thehowl thehowl self-assigned this Jan 23, 2024
@thehowl thehowl merged commit 4feef3f into master Jan 23, 2024
6 checks passed
@thehowl thehowl deleted the dev/morgan/codeowners-root branch January 23, 2024 18:05
leohhhn pushed a commit to leohhhn/gno that referenced this pull request Jan 31, 2024
Pull request gnolang#1572 marks the codeowner as @moul, in spite of what the
configuration might suggest to a human reader.

[Reading through GitHub's
docs](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#example-of-a-codeowners-file),
this seems to come from the fact that if directories are not prefixed
with a `/`, they are considered as applying to all files or directories
with that name. (ie. `foo` matches `/foo` but also `/src/foo`).

I've added `/` to all directories in CODEOWNERS to fix this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants