зеркало из https://github.com/github/docs.git
Коммит
bc33f3e6bd
|
@ -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)."
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче