2019-07-29 17:09:32 +00:00
|
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
|
|
|
|
|
|
export interface PayloadRepository {
|
|
|
|
[key: string]: any
|
2019-08-02 19:25:51 +00:00
|
|
|
full_name?: string
|
2019-07-29 17:09:32 +00:00
|
|
|
name: string
|
|
|
|
owner: {
|
|
|
|
[key: string]: any
|
|
|
|
login: string
|
|
|
|
name?: string
|
|
|
|
}
|
2019-08-02 19:25:51 +00:00
|
|
|
html_url?: string
|
2019-07-29 17:09:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface WebhookPayload {
|
|
|
|
[key: string]: any
|
|
|
|
repository?: PayloadRepository
|
|
|
|
issue?: {
|
|
|
|
[key: string]: any
|
|
|
|
number: number
|
|
|
|
html_url?: string
|
|
|
|
body?: string
|
|
|
|
}
|
2019-08-02 19:25:51 +00:00
|
|
|
pull_request?: {
|
2019-07-29 17:09:32 +00:00
|
|
|
[key: string]: any
|
|
|
|
number: number
|
2019-08-02 19:25:51 +00:00
|
|
|
html_url?: string
|
2019-07-29 17:09:32 +00:00
|
|
|
body?: string
|
|
|
|
}
|
|
|
|
sender?: {
|
|
|
|
[key: string]: any
|
|
|
|
type: string
|
|
|
|
}
|
|
|
|
action?: string
|
|
|
|
installation?: {
|
|
|
|
id: number
|
|
|
|
[key: string]: any
|
|
|
|
}
|
2020-06-03 15:54:01 +00:00
|
|
|
comment?: {
|
|
|
|
id: number
|
|
|
|
[key: string]: any
|
|
|
|
}
|
2019-07-29 17:09:32 +00:00
|
|
|
}
|