codeowners
codeowners copied to clipboard
🔒 Command line tool and Go library for CODEOWNERS files
Per GitHub [docs](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-syntax), CODEOWNERS follows mostly gitignore syntax. gitignore [documents](https://git-scm.com/docs/gitignore#_pattern_format): > A backslash ("\\") can be used to escape any character. This rule is not explicitly disabled by GitHub, so...
Hi 👋, I encountered a [parsing error](https://github.com/ossf/scorecard/issues/4768) when using `codeowners.ParseFile()` while running **OpenSSF Scorecards**. The failure occurs when the CODEOWNERS file contains an entry with the `^` character (e.g., [IBM/vllm](https://github.com/IBM/vllm/blob/1c3cd0e04a280a83ffa04610cc293ad7aa400765/.github/CODEOWNERS#L58))....
👋 Having come across https://github.com/robandpdx/gh-codeowners, I was curious if you had any interest in the little bit of work needed to turn this into a [GitHub CLI extension](https://docs.github.com/en/github-cli/github-cli/creating-github-cli-extensions) yourself. For...
This creates a command-line argument `-t, --tracked` that only considers files that are currently tracked by git.
This PR adds support for Next.js/Nuxt.js-style dynamic route parameters in CODEOWNERS patterns, addressing [issue #42](https://github.com/hmarr/codeowners/issues/42). Modern web frameworks like Next.js and Nuxt.js use square brackets [paramName] in file and directory...
**Problem** CODEOWNERS patterns fail to match file paths containing square brackets, which are commonly used in modern web frameworks (Next.js, Nuxt.js) for dynamic routes. **Minimal Reproduction** Example 1: File with...
It would be cool if this outputs to YAML. Do you accept pull requests? Here's a fast proof of concept I use with `awk`. ### Example output The following example...