TfsPullRequestSystemAliases.

TfsPullRequests(ICakeContext, TfsPullRequestSettings) Method

Summary

Gets an object for writing issues to Team Foundation Server or Visual Studio Team Services pull request using the specified settings.

Syntax

public static IPullRequestSystem TfsPullRequests(this ICakeContext context, TfsPullRequestSettings settings)

Examples

Report code analysis issues reported as MsBuild warnings to a TFS pull request:

 var repoRoot = new DirectoryPath("c:\repo");
     var pullRequestSettings =
         new TfsPullRequestSettings(
             new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
             "refs/heads/feature/myfeature",
             TfsAuthenticationNtlm());

     ReportCodeAnalysisIssuesToPullRequest(
         MsBuildCodeAnalysis(
             @"C:\build\msbuild.log",
             MsBuildXmlFileLoggerFormat),
         TfsPullRequests(pullRequestSettings),
         repoRoot);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings TfsPullRequestSettings Settings for accessing the pull request system.

Return Value

Type Description
IPullRequestSystem Object for writing issues to Team Foundation Server or Visual Studio Team Services pull request.
GitHub