我想使用Shell脚本在api的帮助下删除回购中的特定分支
我已经通过了官方文档https://docs.atlassian.com/bitbucket-server/rest/4.14.4/bitbucket-branch-rest.html,其中包含api的详细信息,可删除回购协议的所有分支但不删除特定分支在回购中
得到了答案,下面是api
{bitbucket_url} /rest/branch-utils/1.0/projects/ {project_name} / repos / {repo_name} / branches -H“ content-type:application / json” -d“ {” name“:” {branch_name}“, “ dryRun”:false}“
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句