Tag Filter is not honored on `git push`

Issue #48 new
Former user created an issue

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)

  1. Alan Snow

    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.

  2. Mark O'Callaghan

    To have a filter that only triggers for branches, I believe the options needed are:

    Branch filter: $never Tag filter: .+ And user filter empty

    For branch commits, the tag filter is not applied so the $never is needed to ensure the branch filter does not match.

  3. Log in to comment