MCPcopy Index your code
hub / github.com/dmno-dev/bumpy / buildAddEmptyBumpFileLink

Function buildAddEmptyBumpFileLink

packages/bumpy/src/commands/ci.ts:1253–1262  ·  view source on GitHub ↗

Link to create an empty bump file on GitHub — acknowledges that no release is needed

(prBranch: string | null)

Source from the content-addressed store, hash-verified

1251
1252/** Link to create an empty bump file on GitHub — acknowledges that no release is needed */
1253function 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
1264function pmRunCommand(pm: PackageManager): string {
1265 if (pm === 'bun') return 'bunx bumpy';

Callers 1

formatNoBumpFilesCommentFunction · 0.85

Calls 1

randomNameFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…