Join the community to find out what other Atlassian users are discussing, debating and creating.
as part of my organization monthly git-maintenance we use the following command in a shell script to delete branches in bitbucket
curl -u id:password -H Content-Type:application/json https://bitbucket.organisation.com/rest/branch-utils/1.0/projects/projectname/repos/${REPO_NAME}/branches -X DELETE --data "{\"name\": \"refs/heads/${gitbranch}\",\"dryRun\": \"false\"}"
any idea how I can get a bitbucket token to delete as im not comfortable using my id:password in a script stored in out local servers.
Thanks !!
Hello,
You can get a token by clicking on "Manage Account" on your profile picture on the upper right. There you can find "Personal access tokens" sections.
Regards.
Hey Community! I work on the Bitbucket product marketing team. With Halloween approaching, we wanted to discuss a topic tailor-made for October: development horror stories. Whether it was a lurk...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.