Пример #1
0
        public static String GenerateTitle(this IBuild build, BuildViewStyle viewStyle)
        {
            if (viewStyle == BuildViewStyle.GroupByPullRequest)
            {
                if (build.PullRequest != null)
                {
                    return($"{build.Definition.Project.Name} - {build.PullRequest.Title} - {build.BuildNumber}");
                }
            }

            return($"{build.Definition.Project.Name} - {build.Definition.Name} - {build.BuildNumber}");
        }
Пример #2
0
 public BuildItem(IBuild build, BuildViewStyle viewStyle)
 {
     this.viewStyle = viewStyle;
     Build          = build;
 }