MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / buildAddBumpFileLink

Function buildAddBumpFileLink

packages/bumpy/src/commands/ci.ts:1242–1250  ·  view source on GitHub ↗
(prBranch: string | null)

Source from the content-addressed store, hash-verified

1240const FROG_IMG_BASE = 'https://raw.githubusercontent.com/dmno-dev/bumpy/main/images';
1241
1242function 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 */
1253function buildAddEmptyBumpFileLink(prBranch: string | null): string | null {

Callers 3

formatReleasePlanCommentFunction · 0.85
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…