mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-23 17:31:11 +01:00
50 lines
940 B
Go
50 lines
940 B
Go
export declare global {
|
|
interface GitChange {
|
|
path?: string;
|
|
name?: string;
|
|
is_dir?: boolean;
|
|
staging?: string;
|
|
worktree?: string;
|
|
extra?: string;
|
|
children?: GitChange[];
|
|
}
|
|
|
|
interface GitLog {
|
|
hash?: string;
|
|
msg?: string;
|
|
branch?: string;
|
|
author_name?: string;
|
|
author_email?: string;
|
|
timestamp?: string;
|
|
refs?: GitRef[];
|
|
}
|
|
|
|
interface GitRef {
|
|
type?: 'branch' | 'tag';
|
|
name?: string;
|
|
full_name?: string;
|
|
hash?: string;
|
|
timestamp?: string;
|
|
remote_track?: string;
|
|
}
|
|
|
|
interface GitDiff {
|
|
current_content?: string;
|
|
parent_content?: string;
|
|
}
|
|
|
|
interface Git extends BaseModel {
|
|
url?: string;
|
|
name?: string;
|
|
auth_type?: string;
|
|
username?: string;
|
|
password?: string;
|
|
current_branch?: string;
|
|
status?: GitStatus;
|
|
error?: string;
|
|
auto_pull?: boolean;
|
|
spiders?: Spider[];
|
|
clone_logs?: string[];
|
|
}
|
|
}
|