Summary
Reports issues to pull requests using the specified settings.
Syntax
public static PullRequestIssueResult ReportIssuesToPullRequest(this ICakeContext context, IIssueProvider issueProvider, IPullRequestSystem pullRequestSystem, IReportIssuesToPullRequestFromIssueProviderSettings settings)
Examples
Report issues reported as MsBuild warnings to a TFS pull request and limit number of comments to ten:
var settings =
new ReportIssuesToPullRequestFromIssueProviderSettings(@"C:\repo")
{
MaxIssuesToPost = 10
};
ReportIssuesToPullRequest(
MsBuildIssuesFromFilePath(
@"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 |
|
CakeAliasCategoryAttribute |
|
Parameters
Return Value