PrcaAliases.

ReportIssuesToPullRequest(ICakeContext, IEnumerable<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, IEnumerable<ICodeAnalysisProvider> codeAnalysisProviders, IPullRequestSystem pullRequestSystem, DirectoryPath repositoryRoot)

Examples

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

ReportIssuesToPullRequest(
        new List<ICodeAnalysisProvider>
        {
            MsBuildCodeAnalysisFromFilePath(
                @"C:\build\msbuild.log",
                MsBuildXmlFileLoggerFormat),
            InspectCodeFromFilePath(
                @"C:\build\inspectcode.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.
codeAnalysisProviders IEnumerable<T> The list of 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