PrcaAliases.

ReportIssuesToPullRequest(ICakeContext, ICodeAnalysisProvider, IPullRequestSystem, ReportIssuesToPullRequestSettings) Method

Summary

Reports code analysis issues to pull requests using the specified settings.
Assembly
Cake.Prca.dll
Namespace
Cake.Prca
Containing Type
PrcaAliases

Syntax

public static PrcaResult ReportIssuesToPullRequest(this ICakeContext context, ICodeAnalysisProvider codeAnalysisProvider, IPullRequestSystem pullRequestSystem, ReportIssuesToPullRequestSettings settings)

Examples

Report code analysis issues reported as MsBuild warnings to a TFS pull request and limit number of comments to ten:

 var settings =
         new ReportIssuesToPullRequestSettings(new DirectoryPath("c:\repo"))
         {
             MaxIssuesToPost = 10
         };

     ReportIssuesToPullRequest(
         MsBuildCodeAnalysisFromFilePath(
             @"C:\build\msbuild.log",
             MsBuildXmlFileLoggerFormat),
         TfsPullRequests(
             new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
             "refs/heads/feature/myfeature",
             TfsAuthenticationNtlm()),
         settings));

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
codeAnalysisProvider ICodeAnalysisProvider The provider for code analysis issues.
pullRequestSystem IPullRequestSystem The pull request system.
settings ReportIssuesToPullRequestSettings The settings.

Return Value

Type Description
PrcaResult Information about the reported and written issues.
GitHub