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

Function matchChannelByBranch

packages/bumpy/src/core/channels.ts:90–96  ·  view source on GitHub ↗
(config: BumpyConfig, branch: string | null)

Source from the content-addressed store, hash-verified

88
89/** Find the channel matching a branch name, if any */
90export function matchChannelByBranch(config: BumpyConfig, branch: string | null): ResolvedChannel | null {
91 if (!branch) return null;
92 for (const channel of resolveChannels(config).values()) {
93 if (channel.branch === branch) return channel;
94 }
95 return null;
96}
97
98/**
99 * Resolve the active channel for a command:

Callers 5

channels.test.tsFile · 0.90
ciCheckCommandFunction · 0.90
ciPlanCommandFunction · 0.90
ciReleaseCommandFunction · 0.90
resolveActiveChannelFunction · 0.85

Calls 1

resolveChannelsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…