| 12345678910111213141516 |
- export function runResultFallback(status: string, terminal: boolean): string {
- switch (status.toLowerCase()) {
- case "running":
- return "构建仍在运行。";
- case "stopped":
- return "本次构建已停止,流程未完成。";
- case "cancel":
- case "cancelled":
- case "cancle":
- return "本次构建已取消,流程未完成。";
- case "failed":
- return "本次构建失败,流程未完成。";
- default:
- return terminal ? "本次构建已经结束。" : "当前运行状态待确认。";
- }
- }
|