mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-28 19:32:09 +00:00
Follow GitHub's style and fine tune colors & layouts. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
54 lines
1.2 KiB
TypeScript
54 lines
1.2 KiB
TypeScript
// see "models/actions/status.go", if it needs to be used somewhere else, move it to a shared file like "types/actions.ts"
|
|
export type ActionsRunStatus = 'unknown' | 'waiting' | 'running' | 'success' | 'failure' | 'cancelled' | 'skipped' | 'blocked';
|
|
|
|
export type ActionsRun = {
|
|
repoId: number,
|
|
link: string,
|
|
title: string,
|
|
titleHTML: string,
|
|
status: ActionsRunStatus,
|
|
canCancel: boolean,
|
|
canApprove: boolean,
|
|
canRerun: boolean,
|
|
canRerunFailed: boolean,
|
|
canDeleteArtifact: boolean,
|
|
done: boolean,
|
|
workflowID: string,
|
|
workflowLink: string,
|
|
isSchedule: boolean,
|
|
duration: string,
|
|
triggeredAt: number,
|
|
triggerEvent: string,
|
|
jobs: Array<ActionsJob>,
|
|
commit: {
|
|
localeCommit: string,
|
|
localePushedBy: string,
|
|
shortSHA: string,
|
|
link: string,
|
|
pusher: {
|
|
displayName: string,
|
|
link: string,
|
|
},
|
|
branch: {
|
|
name: string,
|
|
link: string,
|
|
isDeleted: boolean,
|
|
},
|
|
},
|
|
};
|
|
|
|
export type ActionsJob = {
|
|
id: number;
|
|
jobId: string;
|
|
name: string;
|
|
status: ActionsRunStatus;
|
|
canRerun: boolean;
|
|
needs?: string[];
|
|
duration: string;
|
|
};
|
|
|
|
export type ActionsArtifact = {
|
|
name: string;
|
|
status: string;
|
|
};
|