( labelConfig: TargetLabelConfig, githubTargetBranch: string, )
| 121 | * @throws {InvalidTargetBranchError} Invalid Github target branch has been selected. |
| 122 | */ |
| 123 | export async function getBranchesForTargetLabel( |
| 124 | labelConfig: TargetLabelConfig, |
| 125 | githubTargetBranch: string, |
| 126 | ): Promise<string[]> { |
| 127 | return typeof labelConfig.branches === 'function' |
| 128 | ? await labelConfig.branches(githubTargetBranch) |
| 129 | : await labelConfig.branches; |
| 130 | } |
no outgoing calls