コード例 #1
0
        private async Task <Message> GetBuildStatus(string filters)
        {
            var builds = await _client.GetBuilds();

            foreach (var buildInfo in builds.Build)
            {
                var build = await _client.GetBuild(buildInfo.Id);

                //attachment.Add(new Attachment
                //{
                //    Color = build.Status == "SUCCESSFUL" ? "good" : "danger",
                //    Text = string.Format("<{0} :: {1}|{2}>", build.BuildType, build.BuildType.Name, build.BuildType.WebUrl)
                //});
            }

            return(null);
        }