( stablePlan: ReleasePlan, channel: ResolvedChannel, packages: Map<string, WorkspacePackage>, )
| 239 | * dropped, mirroring the filter in `buildChannelReleasePlan`. |
| 240 | */ |
| 241 | export function channelDisplayPlan( |
| 242 | stablePlan: ReleasePlan, |
| 243 | channel: ResolvedChannel, |
| 244 | packages: Map<string, WorkspacePackage>, |
| 245 | ): ReleasePlan { |
| 246 | const releases = stablePlan.releases |
| 247 | .filter((r) => { |
| 248 | const pkg = packages.get(r.name); |
| 249 | return !!pkg && !(pkg.private && !pkg.bumpy?.publishCommand); |
| 250 | }) |
| 251 | .map((r) => ({ ...r, newVersion: `${r.newVersion}-${channel.preid}.x` })); |
| 252 | return { ...stablePlan, releases }; |
| 253 | } |
| 254 | |
| 255 | /** One-line summary of a channel plan's versions, for PR titles and commit messages */ |
| 256 | export function formatChannelVersionSummary(releases: PlannedRelease[]): string { |
no outgoing calls
no test coverage detected
searching dependent graphs…