如何通过 API 启用 Bitbucket 分支模型继承?
In the bitbucket interface, there is a toggle that you can click to inherit branching strategies at the top level for a project from the repository's project group settings. I have over 100 of these I need to go through. Is there a call to the REST API that I can make that would set it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直在寻找相同的解决方案,但 API 似乎尚未涵盖此功能。
我尝试了所有 API 调用/参数,试图发现正确的变量。即使从 Web UI 检查有效负载,但遗憾的是没有运气。我想我们只需要等待......或者循环遍历每个存储库并应用相同的配置。
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-branching-model/#api-repositories-workspace-repo-slug-branching-model-settings-put
I've been looking for a same solution, but it appears the API doesn't cover this functionality (yet).
I've played around with all manor of API calls/parameters in an attempt to discover the right variable. Even inspecting the payload from the web UI but sadly no luck. I think we're just gonna have to wait.. that or loop through each repo and apply the same configuration.
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-branching-model/#api-repositories-workspace-repo-slug-branching-model-settings-put