In VSTFS I'm trying to create a build tag that gets the source (pull request) from a merge. I've been trying to do it using variables such as those described by Microsoft in this link: https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=designer%2Cbatch
Just so you can get a little more vision on the issue:
Currently we're just using the BuildNumber variable on the tag, we want to add to it the source Pull Request ID.
Images:
When you tag the build you can use the variable System.PullRequest.PullRequestId
, it returns the Pull Request Id.