public void ShowVersion() { var versionInfo = GitFlow.FetchVersion(); Logger.Info("Computed Version: " + versionInfo.FullSemVer); Logger.Info("- Current branch: " + StartingBranch); Logger.Info("- Develop branch: " + developBranch); Logger.Info("- Staging-Branch: " + ReleaseStagingBranch); Logger.Info("- Target-Branch: " + ReleaseTargetBranch); }
public BuildState(string versionTagPattern, string developBranch, string stagingBranchPattern, string releaseTargetBranch) { this.versionTagPattern = versionTagPattern; this.developBranch = developBranch; this.stagingBranchPattern = stagingBranchPattern; this.targetBranchPattern = releaseTargetBranch; Version = GitFlow.FetchVersion(); StartingBranch = Version.BranchName; }