Summary
Reports code analysis issues to pull requests.
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. |