Aliases.

ReportIssuesToPullRequest(ICakeContext, IEnumerable<IIssueProvider>, IPullRequestSystem, ReportIssuesToPullRequestSettings) Method

Summary

Reports issues to pull requests using the specified settings.

Syntax

public static PullRequestIssueResult ReportIssuesToPullRequest(this ICakeContext context, IEnumerable<IIssueProvider> issueProviders, IPullRequestSystem pullRequestSystem, ReportIssuesToPullRequestSettings settings)

Examples

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

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

     ReportIssuesToPullRequest(
         new List<IIssueProvider>
         {
             MsBuildIssuesFromFilePath(
                 @"C:\build\msbuild.log",
                 MsBuildXmlFileLoggerFormat),
             InspectCodeFromFilePath(
                 @"C:\build\inspectcode.log")
         },
         TfsPullRequests(
             new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
             "refs/heads/feature/myfeature",
             TfsAuthenticationNtlm()),
         settings));

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
issueProviders IEnumerable<IIssueProvider> The list of provider for issues.
pullRequestSystem IPullRequestSystem The pull request system.
settings ReportIssuesToPullRequestSettings The settings.

Return Value

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