diff --git a/Bootstrap.Admin/Controllers/Api/GiteeController.cs b/Bootstrap.Admin/Controllers/Api/GiteeController.cs index cabfff04..507a35b4 100644 --- a/Bootstrap.Admin/Controllers/Api/GiteeController.cs +++ b/Bootstrap.Admin/Controllers/Api/GiteeController.cs @@ -10,7 +10,7 @@ using System.Threading.Tasks; namespace Bootstrap.Admin.Controllers.Api { /// - /// + /// Gitee 网站信息接口类 /// [Route("api/[controller]/[action]")] [ApiController] @@ -18,7 +18,7 @@ namespace Bootstrap.Admin.Controllers.Api public class GiteeController : ControllerBase { /// - /// + /// 获取 Gitee 网站 Issues 信息 /// /// /// @@ -38,11 +38,12 @@ namespace Bootstrap.Admin.Controllers.Api var result = string.IsNullOrEmpty(content) ? new string[] { "unknown" } : regex.Select((m, i) => $"{labels[i]} {m.Groups[1].Value}"); return string.Join(" ", result); }); + color = ret.StartsWith("open 0 progressing 0") ? "success" : color; return new JsonResult(new { schemaVersion = 1, label, message = ret, color }); } /// - /// + /// 获取 Gitee 网站 Pulls 信息 /// /// /// @@ -66,7 +67,7 @@ namespace Bootstrap.Admin.Controllers.Api } /// - /// + /// 获取 Gitee 网站 Releases 信息 /// /// /// @@ -88,7 +89,7 @@ namespace Bootstrap.Admin.Controllers.Api } /// - /// + /// 获取 Gitee 网站 Builds 信息 /// /// /// @@ -127,24 +128,18 @@ namespace Bootstrap.Admin.Controllers.Api return ret; } - /// - /// - /// private class AppveyorBuildResult { /// - /// + /// Appveyor 编译版本实例 /// public Build Build { get; set; } } - /// - /// - /// private class Build { /// - /// + /// Build 版本信息 /// public string Version { get; set; } }