QualiSystems / FluentTc

:ocean: :two_men_holding_hands: :office: Integrate with TeamCity fluently
https://www.nuget.org/packages/fluenttc
Apache License 2.0
44 stars 35 forks source link

Allow fluent branch specification on VCS creation #106

Closed borismod closed 6 years ago

borismod commented 7 years ago

Feature Request

As a user I would like to be able to fluently specify what branches to include and exclude when defining a VCS root.

Test to reproduce

[Test]
public void CreateVcsRoot_FluentVcsBranchSpec_VcsRootCreated()
{
   var vcsRoot = new RemoteTc(c => c.ToHost("HOST").AsGuest()).
          CreateVcsRoot(project => project.Id("ProjectId"),
                 vcsRoot => vcsRoot
                    .Id("VcsRootId")
                    .Name("VcsRootName")
                    .Password("Password")
                    .Branch("refs/head/develop")
                    .BranchSpec(spec => spec.IncludeFeatureBranches()
                                                               .IncludeMasterBranch()
                                                               .ExcludeBugFixBranches())
}
borismod commented 6 years ago

Resolved and available on nuget