Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是一个非常自定义的问题,但也许有人有答案或曾经在这种情况下。
有没有办法指定(可能是赫斯基)如果在某个文件夹中添加了一些新文件,那么 PR 也需要具有特定的文件扩展名?
我的想法是:
- If the PR includes code in the path "/utils" then - the PR it must contains a ".test.js" file
我想强制如果有人在“/utils”路径下创建了新代码,那么必须上传一个新的“.test.js”文件