Tag Filter is not honored on `git push`
When I set the Tag Filter to ^anything$ and just execute git push
without doing anything tag related - the hook seems to be triggered regardless of the Tag Filter value. Is this expected?
My usecase is that I want to trigger the hook only on a tagged commit. Is this possible to achieve?
I'm running on Atlasian Stash v3.10.0 and for the moment I am not sure which version of the plugin is installed. I don't own the Stash instance and I don't know how to check it without having Admin role, but I'm contacting Stash instance owners to get this info.
Comments (3)
-
-
Did you ever figure this out? I have a similar use case except I do not want to trigger the hook on a tagged commit.
-
To have a filter that only triggers for branches, I believe the options needed are:
Branch filter:
$never
Tag filter:.+
And user filter emptyFor branch commits, the tag filter is not applied so the
$never
is needed to ensure the branch filter does not match. - Log in to comment
The plugin version that we use is 3.2