Skip to content

mabreuortega/Cake.Tfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cake.Tfs

Build status

Collection of Cake TFS tools and extensions.

Cake.Tfs.AutoMerge

Referencing

Cake.Tfs.AutoMerge is available as a nuget package from the package manager console:

Install-Package Cake.Tfs.AutoMerge

or directly in your build script via a cake addin directive:

#addin "Cake.Tfs.AutoMerge"

Usage

#addin "Cake.Tfs.AutoMerge"

Task("Merge")
	.Does(c => {
		CreateAutoMergePullRequest(
			new AutoMergeSettings 
			{
		                // Required
				CollectionUri = "https://{instance}/{collection-name}",
				ProjectName = "project-name",
				RepositoryName = "repository-name",
				SourceBranch = "refs/heads/release/1.0.0",
				TargetBranch = "refs/heads/develop",
				Title = "[Auto Merge from Release]",

                		// Optional
				Description = "Brief description of the changes about to get merge",

                		// Control
				DeleteSourceBranch = false,
				SquashMerge = false,
				OverridePolicies = true,
				AutoComplete = true,
				AutoApprove = true
			});
	});

RunTarget("Merge");