(date, months)
| 8 | const GITHUB_TOKEN = process.env.GITHUB_TOKEN || process.env.GH_TOKEN || ''; |
| 9 | |
| 10 | function subtractMonths(date, months) { |
| 11 | const next = new Date(date); |
| 12 | next.setUTCMonth(next.getUTCMonth() - months); |
| 13 | return next; |
| 14 | } |
| 15 | |
| 16 | function normalizeRepo(owner, repo) { |
| 17 | return { |