シェルスクリプトを使用して、APIの助けを借りてリポジトリの特定のブランチを削除したいと思います。
公式文書を確認しましたhttps://docs.atlassian.com/bitbucket-server/rest/4.14.4/bitbucket-branch-rest.htmlこれには、リポジトリのすべてのブランチを削除しますが、リポジトリの特定のブランチは削除しないAPIの詳細が含まれています。
ベストアンサー1
答えを得ました。ここに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": 偽}"