feat: 添加code-spell-checker插件
All checks were successful
CI Monitor CI/CD / build-image (push) Successful in 30s
CI Monitor CI/CD / deploy (push) Successful in 28s

This commit is contained in:
zhaoyingbo 2024-07-01 12:16:39 +00:00
parent ba71a09887
commit ea389da7bb
2 changed files with 5 additions and 4 deletions

View File

@ -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"
]
}
}

View File

@ -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);
}