AutoMergeAliases.

CreateAutoMergePullRequest(ICakeContext, AutoMergeSettings, Action<AutoMergeCredentials>) Method

Summary

If an active Pull Request is opened from sourceBranch to targetBranch return this instance. Create a new instance in other case.
Assembly
Cake.Tfs.AutoMerge.dll
Namespace
Cake.Tfs.AutoMerge
Containing Type
AutoMergeAliases

Syntax

public static int CreateAutoMergePullRequest(this ICakeContext ctx, AutoMergeSettings settings, Action<AutoMergeCredentials> credentialConfigurator = null)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
ctx ICakeContext Cake context
settings AutoMergeSettings Settings to connect to TFS server
credentialConfigurator Action<AutoMergeCredentials> Credentials to connect to TFS server

Return Value

Type Description
int The existing Pull Request if exists otherwise the newly created.