我真的很喜欢这个功能 GitHub Template Repository哪里根据文档
After you make your repository a template, anyone with access to the repository can generate a new repository with the same directory structure and files.
我还想完成的是复制模板存储库的标签和设置。这将简化流程并带来标准化。
以下可能是我希望从模板存储库继承的可能设置
Allow merge commits
Protected branches
master branch /docs folder
After pull requests are merged, you can have head branches deleted automatically
你试过这个吗?如果是,你是如何做到的?
最佳答案
目前,“Creating a repository from a template ”不扩展到设置,只扩展到存储库结构。
如果所述存储库是组织的一部分,则您有一个 common set of settings您(作为该组织的管理员)可以管理。
关于templates - GitHub - 用于复制设置和标签的模板存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60923506/