This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Issues.PullRequests.
Summary
Reports issues to pull requests using the specified settings.
- Assembly
- Cake
.Issues .PullRequests .dll - Namespace
- Cake
.Issues .PullRequests - Containing Type
- Aliases
Syntax
public static PullRequestIssueResult ReportIssuesToPullRequest(this ICakeContext context, IEnumerable<IIssueProvider> issueProviders, 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(
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 |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
issueProviders | IEnumerable |
The list of provider for issues. |
pullRequestSystem | IPullRequestSystem | The pull request system. |
settings | I |
The settings. |
Return Value
Type | Description |
---|---|
Pull |
Information about the reported and written issues. |