PrcaAliases.

ReportIssuesToPullRequest(ICakeContext, ICodeAnalysisProvider, IPullRequestSystem, DirectoryPath) Method

Summary

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

Syntax

public static PrcaResult ReportIssuesToPullRequest(this ICakeContext context, ICodeAnalysisProvider codeAnalysisProvider, IPullRequestSystem pullRequestSystem, DirectoryPath repositoryRoot)

Examples

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

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

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.
repositoryRoot DirectoryPath Root path of the repository.

Return Value

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