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

Function getPushEventRange

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

Read the push event's before/after range, if running on a GitHub Actions push event

()

Source from the content-addressed store, hash-verified

924 const channel = channels.get(name);
925 if (!channel) continue;
926 const pr = tryRunArgs(
927 ['gh', 'pr', 'list', '--head', channel.versionPr.branch, '--json', 'number', '--jq', '.[0].number'],
928 { cwd: rootDir },
929 );
930 if (!pr) continue;
931 const validPr = validatePrNumber(pr);
932 log.step(`Closing release PR #${validPr} — the "${name}" cycle's changes are pending here now...`);
933 try {
934 await withPatToken(() =>
935 runArgsAsync(
936 [
937 'gh',
938 'pr',
939 'close',
940 validPr,
941 '--comment',
942 `Closing — the \`${name}\` cycle's bump files were promoted and are now pending a release here. ` +
943 `A new release PR will be created automatically if more changes land on \`${channel.branch}\`.`,

Callers 2

detectChannelMovesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…