on bitbucket, is it possible to reject tags push which are not on master branch with a prehook.
I started with the following snippet
refChanges.any { it.ref.id.startsWith("refs/tags/") &&
it.type == RefChangeType.ADD
}
but not sure which method I can check to know if the commit where the tag is done is on master
BR