1
0
Fork 0
toolkit/packages/github/src/interfaces.ts

44 lines
733 B
TypeScript
Raw Normal View History

/* eslint-disable @typescript-eslint/no-explicit-any */
export interface PayloadRepository {
[key: string]: any
2019-08-02 19:25:51 +00:00
full_name?: string
name: string
owner: {
[key: string]: any
login: string
name?: string
}
2019-08-02 19:25:51 +00:00
html_url?: string
}
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?: {
[key: string]: any
number: number
2019-08-02 19:25:51 +00:00
html_url?: string
body?: string
}
sender?: {
[key: string]: any
type: string
}
action?: string
installation?: {
id: number
[key: string]: any
}
comment?: {
id: number
[key: string]: any
}
}