Link to create an empty bump file on GitHub — acknowledges that no release is needed
(prBranch: string | null)
| 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 { |
| 1254 | if (!prBranch) return null; |
| 1255 | const repo = process.env.GITHUB_REPOSITORY; |
| 1256 | if (!repo) return null; |
| 1257 | |
| 1258 | // An empty bump file is just empty frontmatter (`---\n---`) — see `bumpy add --empty`. |
| 1259 | const template = ['---', '---', ''].join('\n'); |
| 1260 | const filename = `.bumpy/${randomName()}.md`; |
| 1261 | return `https://github.com/${repo}/new/${prBranch}?filename=${encodeURIComponent(filename)}&value=${encodeURIComponent(template)}`; |
| 1262 | } |
| 1263 | |
| 1264 | function pmRunCommand(pm: PackageManager): string { |
| 1265 | if (pm === 'bun') return 'bunx bumpy'; |
no test coverage detected
searching dependent graphs…