API(셸 스크립트)를 사용하여 bitbucket 저장소의 특정 분기 삭제

API(셸 스크립트)를 사용하여 bitbucket 저장소의 특정 분기 삭제

쉘 스크립트를 사용하여 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": 거짓}"

관련 정보