Open JGCreator opened 4 years ago
Same problem.
We don't know how to create the ArtifactId.
@JGCreator @juanperezADD I see that this is an old thread. But I had run into this recently, and opened a dev community item. For the artifact id, you should in fact be using vstfs:///CodeReview/CodeReviewId/{projectId}/{pullRequestId} itself.
That was a bit confusing to me as well! Was initially trying out the artifact id of the PR being returned from Get PR rest api - in the format : vstfs:///Git/PullRequestId/{projectId}/{repositoryId}/{pullRequestId}
Stumbled upon this as well. It's a little confusing that the PR API responds with fields like artifactId
and codeReviewId
but neither are used in policy evals for the PR.
We had to look at the repository of the PR, and then repository's project, to get its ID for the vstfs://CodeReview
artifact for a policy eval.
Documentation on "generating" an artifact id is unclear:
And there is no example of how to do this in the repository.