status-copy.ts 553 B

12345678910111213141516
  1. export function runResultFallback(status: string, terminal: boolean): string {
  2. switch (status.toLowerCase()) {
  3. case "running":
  4. return "构建仍在运行。";
  5. case "stopped":
  6. return "本次构建已停止,流程未完成。";
  7. case "cancel":
  8. case "cancelled":
  9. case "cancle":
  10. return "本次构建已取消,流程未完成。";
  11. case "failed":
  12. return "本次构建失败,流程未完成。";
  13. default:
  14. return terminal ? "本次构建已经结束。" : "当前运行状态待确认。";
  15. }
  16. }