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

Function makePlan

packages/bumpy/test/core/ci-version-pr-body.test.ts:10–29  ·  view source on GitHub ↗
(count: number, summary: string)

Source from the content-addressed store, hash-verified

8const GH_LIMIT = 65_536;
9
10function makePlan(count: number, summary: string): ReleasePlan {
11 const releases: PlannedRelease[] = [];
12 const bumpFiles: BumpFile[] = [];
13 for (let i = 0; i < count; i++) {
14 const id = `bump-${i}`;
15 bumpFiles.push({ id, releases: [{ name: `@scope/pkg-${i}`, type: 'minor' }], summary });
16 releases.push({
17 name: `@scope/pkg-${i}`,
18 type: 'minor',
19 oldVersion: '1.0.0',
20 newVersion: '1.1.0',
21 bumpFiles: [id],
22 isDependencyBump: false,
23 isCascadeBump: false,
24 isGroupBump: false,
25 bumpSources: [],
26 });
27 }
28 return { bumpFiles, releases, warnings: [] };
29}
30
31const packageDirs = new Map<string, string>();
32for (let i = 0; i < 200; i++) packageDirs.set(`@scope/pkg-${i}`, `packages/pkg-${i}`);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…