Collection of Cake TFS tools and extensions.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tools
.gitattributes
.gitignore
LICENSE
README.md
build.cake
cake.ps1

README.md

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");