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

Function formatSnapshotVersionSummary

packages/bumpy/src/core/snapshot.ts:156–160  ·  view source on GitHub ↗
(releases: PlannedRelease[])

Source from the content-addressed store, hash-verified

154
155/** One-line summary of a snapshot plan's versions, for logs and PR comments */
156export function formatSnapshotVersionSummary(releases: PlannedRelease[]): string {
157 if (releases.length === 0) return '';
158 if (releases.length === 1) return `${releases[0]!.name}@${releases[0]!.newVersion}`;
159 return `${releases.length} packages`;
160}
161
162/** Guard: a snapshot version must be a valid prerelease (never collides with a stable release) */
163export function assertSnapshotPrerelease(version: string): void {

Callers 1

snapshot.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…