-
Notifications
You must be signed in to change notification settings - Fork 18
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
No owner for specific file #40
Comments
Is the actual text of the file: /build/logs/log.txt @ghost or does it include the CODEOWNERS heading as well? |
this is the actual text |
Please ignore my previous comments, it was dumb :) I RTFM, and I now know what is Still, the problem is here: https://github.com/sbdchd/codeowners/blob/master/codeowners/__init__.py#L48 Instead of:
it should be:
The |
Maybe this is another case of behavior differing from git? Git ignore says it doesn't match:
|
when i replace the regex and execute my code, it gets the file owner. it worked. |
For anyone else reading this and wondering how to work around this, I removed the leading |
if i create a codeowners file like this:
CODEOWNERS:
/build/logs/log.txt @ghost
owners = CodeOwners(example_file)
owners.of("/build/logs/log.txt") it doesnt return any owner
was this supposed to happen?
The text was updated successfully, but these errors were encountered: