user989988
user989988

Reputation: 3746

commit id associated with git tag using Azure DevOps API

I have a git tag as input. I want commit id associated with that git tag as output.

Upvotes: 0

Views: 306

Answers (1)

Shamrai Aleksander
Shamrai Aleksander

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

Related Questions