| 17 | const execAsync = promisify(exec); |
| 18 | |
| 19 | interface WebhookEvent { |
| 20 | action: string; |
| 21 | issue?: { |
| 22 | number: number; |
| 23 | title: string; |
| 24 | body: string | null; |
| 25 | user: { login: string }; |
| 26 | labels: { name: string }[]; |
| 27 | state: string; |
| 28 | }; |
| 29 | pull_request?: { |
| 30 | number: number; |
| 31 | title: string; |
| 32 | body: string | null; |
| 33 | user: { login: string }; |
| 34 | state: string; |
| 35 | changed_files?: number; |
| 36 | additions?: number; |
| 37 | deletions?: number; |
| 38 | }; |
| 39 | comment?: { |
| 40 | body: string; |
| 41 | user: { login: string }; |
| 42 | }; |
| 43 | repository: { |
| 44 | owner: { login: string }; |
| 45 | name: string; |
| 46 | full_name: string; |
| 47 | html_url: string; |
| 48 | default_branch: string; |
| 49 | }; |
| 50 | sender: { login: string }; |
| 51 | } |
| 52 | |
| 53 | export class GitHubAdapter implements IPlatformAdapter { |
| 54 | private octokit: Octokit; |
nothing calls this directly
no outgoing calls
no test coverage detected