.github/
中)创建名为CODEOWNERS
的文件,并采用以下格式:# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.
# These owners will be the default owners for everything in the repo.
* @defunkt
# Order is important. The last matching pattern has the most precedence.
# So if a pull request only touches javascript files, only these owners
# will be requested to review.
*.js @octocat @github/js
# You can also use email addresses if you prefer.
docs/* docs@example.com
.gitattributes
,那么这种格式可能会很熟悉。有了这个设置,每当拉取请求涉及到代码所有者拥有的文件时,系统会自动要求他们进行审核。