(pr: { title: string, user: { login: string } | null, html_url: string })
| 29 | } |
| 30 | |
| 31 | function getPrompt (pr: { title: string, user: { login: string } | null, html_url: string }) { |
| 32 | return [{ |
| 33 | name: 'toBackport', |
| 34 | type: 'confirm', |
| 35 | default: true, |
| 36 | message: `You want to backport "${pr.title}" by ${pr.user?.login || 'unknown user'}?\n(See PR ${pr.html_url})` |
| 37 | }, { |
| 38 | name: 'exit', |
| 39 | type: 'confirm', |
| 40 | default: false, |
| 41 | message: 'Exit process?', |
| 42 | when: ({ toBackport }: { toBackport: boolean }) => !toBackport |
| 43 | }] |
| 44 | } |
| 45 | |
| 46 | const api = new Octokit({ auth: process.env.GITHUB_AUTH }) |
| 47 |
no outgoing calls
no test coverage detected
searching dependent graphs…