Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在GitHub CODEOWNERS中忽略一个文件,同时仍然有一个通配符_Github_Ignore - Fatal编程技术网

如何在GitHub CODEOWNERS中忽略一个文件,同时仍然有一个通配符

如何在GitHub CODEOWNERS中忽略一个文件,同时仍然有一个通配符,github,ignore,Github,Ignore,我希望这是我忽略的一个非常简单的答案,但我在GitHub中使用了回购协议,并希望执行以下操作: # Default reviewers except for the subsequently listed things: * @global-owner1 @global-owner2 # Some other owners /packages/something/ @octocat /packages/another/ @doctocat # PRs _only_ affecting the

我希望这是我忽略的一个非常简单的答案,但我在GitHub中使用了回购协议,并希望执行以下操作:

# Default reviewers except for the subsequently listed things:
* @global-owner1 @global-owner2

# Some other owners
/packages/something/ @octocat
/packages/another/ @doctocat

# PRs _only_ affecting the "Some other owners" paths will
# also include a change to the CHANGELOG.md, but I don't want
# @global-owner1 or @global-owner2 to be added on those PRs.
CHANGELOG.md

是否有办法以这种方式“忽略”CHANGELOG.md文件?

该文件被向后读取,第一次匹配结束搜索。因此,似乎您不需要最后一行,因为“其他所有者路径”将首先被命中