From ea389da7bbb2561f93f8d3228f673c9683c86ef5 Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Mon, 1 Jul 2024 12:16:39 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0code-spell-checker?= =?UTF-8?q?=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/devcontainer.json | 3 ++- controllers/managePipeLine/index.ts | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index eb8816e..c4785db 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -25,7 +25,8 @@ "Gruntfuggly.todo-tree", "MS-CEINTL.vscode-language-pack-zh-hans", "stylelint.vscode-stylelint", - "GitHub.copilot" + "GitHub.copilot", + "streetsidesoftware.code-spell-checker" ] } } diff --git a/controllers/managePipeLine/index.ts b/controllers/managePipeLine/index.ts index ce8766e..af61a45 100644 --- a/controllers/managePipeLine/index.ts +++ b/controllers/managePipeLine/index.ts @@ -17,14 +17,14 @@ const getFullPipelineList = async (project: ProjectRecordModel) => { // 获取pipeline列表并保存 const fullPipelineList: GitlabPipeline[] = []; let page = 1; - let hasBeforLatestTime = false; - while (!hasBeforLatestTime) { + let hasBeforeLatestTime = false; + while (!hasBeforeLatestTime) { const pipelines = await service.fetchPipelines(project.project_id, page++); // 如果当前页没有数据,则直接跳出 if (pipelines.length === 0) break; pipelines.forEach((pipeline) => { if (moment(pipeline.created_at).isSameOrBefore(latestTime)) { - hasBeforLatestTime = true; + hasBeforeLatestTime = true; } else { fullPipelineList.push(pipeline); }