github“自动删除头部分支”用于多个存储库
在GitHub上,我们可以在合并后的存储库后自动删除分支(如说明在这里)。我想在30个存储库中这样做。 有没有办法通过脚本执行此操作? 我通常想在每个存储库中添加一个文件。
On Github we can set automatically deletion of branches after merge for a repository (like explained here). I want to do this for 30 repositories.
Is there a way to do this by script ?
I typically would like to add a file to each repository.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可以通过脚本相对轻松地完成此操作。您可以使用 github cli 为此。有 plost command 您可以在成功的Merge之后删除分支的删除对于一个存储库:
如果您想从CLI开始。
I think you can do this relatively easily with a script. You can use the GitHub CLI for this. There is the following command with which you can switch on the deletion of the branch after a successful merge for a repository:
If you want to start with the CLI, I guess this is a good starting point.