2020-01-28 13:08:03 +08:00
|
|
|
export interface PayloadRepository {
|
|
|
|
[key: string]: any;
|
|
|
|
full_name?: string;
|
|
|
|
name: string;
|
|
|
|
owner: {
|
|
|
|
[key: string]: any;
|
|
|
|
login: string;
|
|
|
|
name?: string;
|
|
|
|
};
|
|
|
|
html_url?: string;
|
|
|
|
}
|
|
|
|
export interface WebhookPayload {
|
|
|
|
[key: string]: any;
|
|
|
|
repository?: PayloadRepository;
|
|
|
|
issue?: {
|
|
|
|
[key: string]: any;
|
|
|
|
number: number;
|
|
|
|
html_url?: string;
|
|
|
|
body?: string;
|
|
|
|
};
|
|
|
|
pull_request?: {
|
|
|
|
[key: string]: any;
|
|
|
|
number: number;
|
|
|
|
html_url?: string;
|
|
|
|
body?: string;
|
|
|
|
};
|
|
|
|
sender?: {
|
|
|
|
[key: string]: any;
|
|
|
|
type: string;
|
|
|
|
};
|
|
|
|
action?: string;
|
|
|
|
installation?: {
|
|
|
|
id: number;
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
2020-06-06 22:11:37 +08:00
|
|
|
comment?: {
|
|
|
|
id: number;
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
2020-01-28 13:08:03 +08:00
|
|
|
}
|