有没有办法使用TFS 客户端库获取PullRequest的Web URL(类似于
也许我错过了类似于TswaClientHyperlinkService的东西?
还是说我必须从API链接/
https://tfshost/tfs/Collection/Project/_git/Repository/pullrequest/12345
,而不是API url)?var prId = 12345;
var tpc = new TfsTeamProjectCollection(new Uri(""));
var git = tpc.GetClient<GitHttpClient>();
// GitHttpClient has no special methods to do it
// and GitPullRequest obtained through GitHttpClient.GetPullRequestByIdAsync contains only the API link
var prWebUrl = git.?????(prId);
也许我错过了类似于TswaClientHyperlinkService的东西?
还是说我必须从API链接/
GitPullRequest
属性推断Web URL?