Reputation: 3746
I have a git tag as input. I want commit id associated with that git tag as output.
Upvotes: 0
Views: 306
Reputation: 16133
Just add your tag name to the filter filter=tags/tagname
full example:
"https://dev.azure.com/$organization/$teamProject/_apis/git/repositories/$($repoName)/refs?filter=tags/$($tag)&api-version=6.0"
Upvotes: 2