I was able to solve this in two ways
Using the solution given by @VonC I was able to identify for the available tags its source branch
for tag in $(git tag)
do
commit=$(git rev-parse $tag~0)
echo "$tag: $(git rev-parse $commit~0) | branch: $(git branch -r --contains $commit)" | grep branch
done
the output will look like
qa-test-integrated-v0.0.3d: 382d0553d189a8a1591667a3806ac98d0f11394a | branch: origin/HEAD -> origin/master
qa-test-integrated-v0.0.3e: 1a5329d611fe15db6704fe1ea3717b62df8c4320 | branch: origin/HEAD -> origin/master
tag-from-feature-branch: 851cb526e9f9e2c00a3b1e626c010038ecab7428 | branch: origin/feature/DPTGROGU-0000-support
Given the snippet above you can use any bash tool to filter related to a specific branch.
- If you have the name of the branch and want to know which tags belong to that branch we can use a more fancy solution
git tag --merged branch