Summary
Gets an object for writing issues to Team Foundation Server or Visual Studio Team Services pull request
in a specific repository and for a specific source branch.
Syntax
public static IPullRequestSystem TfsPullRequests(this ICakeContext context, Uri repositoryUrl, string sourceBranch, IPrcaCredentials credentials)
Examples
Report code analysis issues reported as MsBuild warnings to a TFS pull request:
var repoRoot = new DirectoryPath("c:\repo");
ReportIssuesToPullRequest(
MsBuildCodeAnalysis(
@"C:\build\msbuild.log",
MsBuildXmlFileLoggerFormat),
TfsPullRequests(
new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
"refs/heads/feature/myfeature",
TfsAuthenticationNtlm()),
repoRoot);
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
CakeAliasCategoryAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
repositoryUrl |
Uri |
Full URL of the Git repository,
eg. http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository .
Supported URL schemes are HTTP, HTTPS and SSH.
URLs using SSH scheme are converted to HTTPS. |
sourceBranch |
string |
Branch for which the pull request is made. |
credentials |
IPrcaCredentials |
Credentials to use to authenticate against Team Foundation Server or
Visual Studio Team Services. |
Return Value
Type |
Description |
IPullRequestSystem |
Object for writing issues to Team Foundation Server or Visual Studio Team Services pull request. |