codeowners icon indicating copy to clipboard operation
codeowners copied to clipboard

🔒 Command line tool and Go library for CODEOWNERS files

Results 13 codeowners issues
Sort by recently updated
recently updated
newest added

Hey, I was playing around with this library when I noticed that the regexp for emails was very restrictive. My setup looks something like this: CODEOWNERS ``` * [email protected] ```...

This commit updates file parsing so that lines that contain solely whitespace (as defined by by Unicode) are ignored. It's fairly common for people to accidentally create CODEOWNERS files with...

Title says it all. If you run `codeowners ./src/file.go` it will always hit a `*` rule, or just `(unowned)` if there is no `*` rule. Whereas `codeowners src/file.go` will correctly...

Correct ```CODEOWNERS *.go @user *.go @zhilyaev ``` Not Correct. ```CODEOWNERS *.go @firstname.lastname *.go @dmitrii.zhiliaev ``` invalid owner format '@dmitrii.zhiliaev' at position 6

Example of codeowner file: `* @group-x/subgroup-y/subgroup-z` throws `invalid owner format '@group-x/subgroup-y/subgroup-z' at position 3 ` Gitlab docs: https://docs.gitlab.com/ee/user/project/codeowners/#add-a-group-as-a-code-owner

Also doesn't work when given absolute path to file Ideally, `codeowners` should be agnostic to the relative positioning of the current directory, the repo root, and the file path(s) to...

The [Gitlab documentation allows](https://docs.gitlab.com/ee/user/project/code_owners.html#organize-code-owners-by-putting-them-into-sections) to introduce sections into the `CODEOWNERS` such as ``` [README Owners] README.md @user1 @user2 internal/README.md @user2 ``` That enables Gitlab to show the code ownership within...

When running `codeowners` on a typical git repository, many files are printed which are actually not part of the repository because of `.gitignore`. Is that correct behavior? Would you consider...

While disallowed from public github usernames, an underscore is a key part of github EMU usernames. See https://docs.github.com/en/enterprise-cloud@latest/admin/identity-and-access-management/understanding-iam-for-enterprises/about-enterprise-managed-users for more information.

Fixes #14 ``` This commit adds support for hiding files from output that have been excluded by .gitignore and friends. I've implemented a few version of this and settled on...