Provides GiteaClient class with methods for repos, orgs, secrets, and action runs.
71 lines
1.2 KiB
TypeScript
71 lines
1.2 KiB
TypeScript
export interface IGiteaUser {
|
|
id: number;
|
|
login: string;
|
|
full_name: string;
|
|
email: string;
|
|
avatar_url: string;
|
|
}
|
|
|
|
export interface IGiteaRepository {
|
|
id: number;
|
|
name: string;
|
|
full_name: string;
|
|
description: string;
|
|
default_branch: string;
|
|
html_url: string;
|
|
private: boolean;
|
|
topics: string[];
|
|
updated_at: string;
|
|
owner: {
|
|
id: number;
|
|
login: string;
|
|
avatar_url: string;
|
|
};
|
|
}
|
|
|
|
export interface IGiteaOrganization {
|
|
id: number;
|
|
name: string;
|
|
full_name: string;
|
|
description: string;
|
|
visibility: string;
|
|
repo_count: number;
|
|
}
|
|
|
|
export interface IGiteaSecret {
|
|
name: string;
|
|
created_at: string;
|
|
}
|
|
|
|
export interface IGiteaActionRun {
|
|
id: number;
|
|
name: string;
|
|
status: string;
|
|
conclusion: string;
|
|
head_branch: string;
|
|
head_sha: string;
|
|
html_url: string;
|
|
event: string;
|
|
run_duration: number;
|
|
created_at: string;
|
|
}
|
|
|
|
export interface IGiteaActionRunJob {
|
|
id: number;
|
|
name: string;
|
|
status: string;
|
|
conclusion: string;
|
|
run_duration: number;
|
|
}
|
|
|
|
export interface ITestConnectionResult {
|
|
ok: boolean;
|
|
error?: string;
|
|
}
|
|
|
|
export interface IListOptions {
|
|
search?: string;
|
|
page?: number;
|
|
perPage?: number;
|
|
}
|