Add github package (#32)

* Add github package

* Docs

* Feedback

* Accidentally added extra

* Allow octokit to be extended

* Respond to feedback

* Feedback
This commit is contained in:
Danny McCormick
2019-07-29 13:09:32 -04:00
committed by GitHub
parent 4f5cf60872
commit 2a2b51f939
12 changed files with 5617 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
export interface PayloadRepository {
[key: string]: any
fullName?: string
name: string
owner: {
[key: string]: any
login: string
name?: string
}
htmlUrl?: string
}
export interface WebhookPayload {
[key: string]: any
repository?: PayloadRepository
issue?: {
[key: string]: any
number: number
html_url?: string
body?: string
}
pullRequest?: {
[key: string]: any
number: number
htmlUrl?: string
body?: string
}
sender?: {
[key: string]: any
type: string
}
action?: string
installation?: {
id: number
[key: string]: any
}
}