(config: BumpyConfig, branch: string | null)
| 88 | |
| 89 | /** Find the channel matching a branch name, if any */ |
| 90 | export 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: |
no test coverage detected
searching dependent graphs…