1
0
mirror of synced 2025-12-29 18:00:57 -05:00

Merge pull request #30648 from github/repo-sync

repo sync
This commit is contained in:
Octomerger Bot
2022-09-09 13:14:00 -04:00
committed by GitHub

View File

@@ -116,12 +116,16 @@ apps/ @octocat
/apps/ @octocat
/apps/github
```
### Syntax exceptions
There are some syntax rules for gitignore files that do not work in CODEOWNERS files:
{% warning %}
**Warning:** There are some syntax rules for gitignore files that *do not work* in CODEOWNERS files:
- Escaping a pattern starting with `#` using `\` so it is treated as a pattern and not a comment
- Using `!` to negate a pattern
- Using `[ ]` to define a character range
{% endwarning %}
## CODEOWNERS and branch protection
Repository owners can add branch protection rules to ensure that changed code is reviewed by the owners of the changed files. For more information, see "[About protected branches](/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches)."