Using "refs/tags/*" or "tags/*" is not preventing tag creation.
Ultimately I would like to force a pull request when adding a tag. But I can't seem to prevent tag creation even when removing all write and merge permissions.
The documentation you linked in your question is for Bitbucket Server and I'm afraid that it is not applicable for Bitbucket Cloud.
At the moment, only users with Read permissions are prevented from pushing/creating tags. I can see that users with write access to a repo can create a tag, even if they are not allowed to push to a branch via branch permissions.
This looks like a bug so I went ahead and opened a bug report in our issue tracker:
Feel free to add yourself as a watcher by selecting the *Start watching this issue* link in the bug report if you'd like to get notified via email on updates.
We also have a feature request to restrict pushing git tags to certain users, if you'd be interested in this:
Regarding your suggestion to force a pull request when adding a tag, I'm not sure if that would work in this case.
For a pull request, you need a source and a target branch. When you attempt to push a commit to a branch you don't have access to, a new branch can be created with this new commit, and therefore a pull request from this new branch, to the one you were originally trying to push.
If you add a tag to a commit, you don't have a second branch to create a pull request from it.
Would you like to have some sort of mechanism to review tags that have been created/pushed by other users, before they are actually added to the commits?
Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events