起亚奥拉所有,
#这是我多次使用 StackOverflow 后的第一篇博文。 #im 在 Azure DevOps 管道、Visual Studio 中使用 git 工作。
我正在开发一个包含许多存储库的项目, 这些存储库之一将容纳我的 pull_request_template.md
每个其他存储库都将具有“pull_request_template.md存储库”作为子模块。
这样我就可以编辑 pull_request_template.md 并且其他存储库应该继承更改。
我知道如果名称 pull_request_template.md 位于根目录中,git 会自动运行 pull_request_template.md 文件...但是如果 pull_request_template.md 位于 git 子模块
中呢?当 pull_request_template.md 位于正在拉取的存储库的子模块中时,如何让 pull_request_template.md 在拉取请求上运行。
请帮忙。
我尝试在网上查找:(
在Azure DevOps中,在Pull Request页面上,没有方法让子模块文件也被列出。
但是,当 Pull Request 触发构建管道时,在 checkout 任务 上,您可以设置一起检出子模块。