2025-01-13 23:12:06 +08:00
|
|
|
declare global {
|
2025-01-14 02:56:47 +08:00
|
|
|
interface IActivity {
|
2025-01-13 23:12:06 +08:00
|
|
|
id: string
|
2025-01-14 02:56:47 +08:00
|
|
|
content: null | string | IContent
|
|
|
|
op_type: 'commit_repo' | 'create_repo' | 'delete_branch' | 'delete_tag' | 'merge_pull_request'
|
2025-01-13 23:12:06 +08:00
|
|
|
repo: {
|
|
|
|
name: string
|
|
|
|
html_url: string
|
2025-01-14 02:56:47 +08:00
|
|
|
owner: {
|
|
|
|
login: string
|
|
|
|
}
|
2025-01-13 23:12:06 +08:00
|
|
|
}
|
|
|
|
created: string
|
2025-01-14 02:56:47 +08:00
|
|
|
ref_name: string
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IStrictActivity extends IActivity {
|
|
|
|
content: IContent | null
|
2025-01-13 23:12:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
interface IContent {
|
|
|
|
Commits: ICommit[]
|
|
|
|
HeadCommit: ICommit
|
|
|
|
CompareURL: string
|
|
|
|
Len: number
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ICommit {
|
|
|
|
Sha1: string
|
|
|
|
Message: string
|
|
|
|
AuthorEmail: string
|
|
|
|
AuthorName: string
|
|
|
|
CommitterEmail: string
|
|
|
|
CommitterName: string
|
|
|
|
Timestamp: string
|
|
|
|
}
|
|
|
|
}
|