我希望使用shell脚本借助api删除回购中的一个特定分支。
我已经浏览了包含api细节的正式文档https://docs.atlassian.com/bitbucket-server/rest/4.14.4/bitbucket-branch-rest.html,它删除了回购中的所有分支,而不是回购中的特定分支。
发布于 2018-10-25 09:44:12
找到答案了,下面是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}“
https://unix.stackexchange.com/questions/477456
复制相似问题