Conditionally add a tag to merge-commit using Azure DevOps and git
问题 I would like to basically achive the very same thing you could achive while using the built in "tag-functionality" for build in Azure DevOps, with one exception.. I need to add a tag conditionally.. The basic idea is to evanluate if the SourceBranch for my PR starts with refs/heads/hotfix, and that the target branch is refs/heads/master, then I would like to tag the final merged commit with the tag "hotfix". I started with something like this: name: PR-$(Rev:r) trigger: none pool: vmImage: