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.AzureDevOps.
Summary
Creates a pull request in Azure DevOps using the specified settings.
- Assembly
- Cake
.AzureDevOps .dll - Namespace
- Cake
.AzureDevOps - Containing Type
- AzureDevOpsAliases
Syntax
public static AzureDevOpsPullRequest AzureDevOpsCreatePullRequest(this ICakeContext context, AzureDevOpsCreatePullRequestSettings settings)
Examples
Creates a pull request:
var pullRequestSettings =
new AzureDevOpsCreatePullRequestSettings(
new Uri("http://myserver:8080/defaultcollection/myproject/_git/myrepository"),
"refs/heads/feature/myfeature",
"refs/heads/develop",
"Merge my feature from myfeature",
"Merge my feature from myfeature",
AzureDevOpsAuthenticationNtlm());
AzureDevOpsCreatePullRequest(pullRequestSettings);
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
|
Cake |
|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
settings | Azure |
Settings for creating the pull request. |
Return Value
Type | Description |
---|---|
Azure |
Returns a AzureDevOpsPullRequest initialized with the
created pull request. |