(prBranch: string | null)
| 1240 | const FROG_IMG_BASE = 'https://raw.githubusercontent.com/dmno-dev/bumpy/main/images'; |
| 1241 | |
| 1242 | function buildAddBumpFileLink(prBranch: string | null): string | null { |
| 1243 | if (!prBranch) return null; |
| 1244 | const repo = process.env.GITHUB_REPOSITORY; |
| 1245 | if (!repo) return null; |
| 1246 | |
| 1247 | const template = ['---', '"package-name": patch', '---', '', 'Description of the change', ''].join('\n'); |
| 1248 | const filename = `.bumpy/${randomName()}.md`; |
| 1249 | return `https://github.com/${repo}/new/${prBranch}?filename=${encodeURIComponent(filename)}&value=${encodeURIComponent(template)}`; |
| 1250 | } |
| 1251 | |
| 1252 | /** Link to create an empty bump file on GitHub — acknowledges that no release is needed */ |
| 1253 | function buildAddEmptyBumpFileLink(prBranch: string | null): string | null { |
no test coverage detected
searching dependent graphs…