Hey, How can I create a tag on head of master using bitbucket Api. Please answer example.
Hey Mudassir,
If you are using Bitbucket server you can use something like
curl -k -X POST -u admin -H "Content-Type: application/json" -d '{ "name": "my-tag", "startPoint": "ae66dd8d1c85b69d527f0648314b7eabf37d2d7b", "message": "my-tag" }' <Your Bitbucket URL>/rest/api/1.0/projects/myf/repos/repo_one/tags
Replace the commit ID in "startPoint": "ae66dd8d1c85b69d527f0648314b7eabf37d2d7b" with the one you want to tag and provide appropriate tag details. Also make sure you use the correct username.
More details on REST API can be found here REST API -Tags
Regards,
Prasanth - Atlassian
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.