AzureDevOpsAliases.

AzureDevOpsCreatePullRequest(ICakeContext, AzureDevOpsCreatePullRequestSettings) Method

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
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute
CakeNamespaceImportAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings AzureDevOpsCreatePullRequestSettings Settings for creating the pull request.

Return Value

Type Description
AzureDevOpsPullRequest Returns a AzureDevOpsPullRequest initialized with the created pull request.