【发布时间】:2022-11-15 23:47:47
【问题描述】:
我在 PR 时遇到 CODEOWNERS 文件的语法错误。
我理解像 * 通配符这样的 glob 模式受支持目录级别和 ** 跨不同目录但想知道是否应该支持如下文件。如果不是,我只需要指定每一行或重新排列目录吗?那些在同一个角色/目录。
locations/location::Main::a.yaml @@"Contributors"
locations/location::Main::b.yaml @@"Contributors"
locations/location::Sub::c.yaml @@"Contributors"
locations/location::Sub::d.yaml @@"Contributors"
像这样设置代码所有者。
locations/location::Main::*.yaml @@"Contributors"
locations/location::Sub::*.yaml @@"Contributors"
在 shell 中它可以工作,但理解 CODEOWNERS 遵循 .gitignore 中使用的模式规则
【问题讨论】:
-
这个问题是关于 GitHub 还是 Bitbucket?标签特别是 GitHub,但语法建议使用 BitBucket。