gitlab_monitor/service/typings.d.ts
zhaoyingbo 1cef20c2c1
All checks were successful
CI Monitor CI/CD / build-image (push) Successful in 28s
CI Monitor CI/CD / deploy (push) Successful in 28s
feat: 添加获取项目徽章的功能 & 抽象gitlab请求
2024-07-01 12:49:29 +00:00

63 lines
1.1 KiB
TypeScript

interface GitlabProjDetail {
id: number;
description: string;
name: string;
path_with_namespace: string;
web_url: string;
avatar_url?: any;
message?: string;
}
interface GitlabPipeline {
id: number;
project_id: number;
sha: string;
ref: string;
status: string;
source: string;
created_at: string;
updated_at: string;
web_url: string;
}
interface GitlabError {
message: string;
}
interface GitlabUser {
id: number;
username: string;
name: string;
state: string;
avatar_url: string;
web_url: string;
}
interface GitlabPipelineDetail {
id: number;
project_id: number;
ref: string;
status: string;
web_url: "https://git.n.xiaomi.com/miai-fe/fe/ai-scene-review-fe/-/pipelines/7646046";
user: GitlabUser;
started_at: string;
finished_at: string;
duration: number;
queued_duration: number;
message?: string;
}
interface GitlabPipelineDetailWithCreateAt extends GitlabPipelineDetail {
created_at: string;
}
interface GitlabBadge {
id: number;
name: string;
link_url: string;
image_url: string;
rendered_link_url: string;
rendered_image_url: string;
kind: "project" | "group";
}