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

CODEOWNERS: fix path notation #31101

Merged
merged 1 commit into from Nov 2, 2017
Merged

Conversation

zimbatm
Copy link
Member

@zimbatm zimbatm commented Nov 1, 2017

This format uses the path matching algorithm as the .gitignore format.

The paths need to be prefixed with a / to become absolute, otherwise it
will match all of these files.

The paths will also match any of the sub-paths by default so it's not
necessary to use the * like in bash globbing.

Motivation for this change

I noticed that @nbp was marked as a codeowner on one of my PRs because he's owning /default.nix. This is probably not what he wants.

@matthewbauer
Copy link
Member

@zimbatm if you could, there’s also an error in Darwin maintainers. It should be @NixOS/darwin-maintainers not what’s there now.

Also are trailing slashes relevant at all in CODEOWNERS? I suspect not but might impact traversal somehow.

This format uses the path matching algorithm as the .gitignore format.

The paths need to be prefixed with a / to become absolute, otherwise it
will match all of these files.

The paths will also match any of the sub-paths by default so it's not
necessary to use the `*` like in bash globbing.
@zimbatm
Copy link
Member Author

zimbatm commented Nov 1, 2017

thanks @matthewbauer, fixed

@Mic92 Mic92 merged commit 634b857 into NixOS:master Nov 2, 2017
@zimbatm zimbatm deleted the codeowners-syntax-fix branch November 2, 2017 10:23
Copy link
Member

@peti peti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants