MCPcopy Create free account
hub / github.com/angular/dev-infra / getBranchesForTargetLabel

Function getBranchesForTargetLabel

ng-dev/pr/common/targeting/target-label.ts:123–130  ·  view source on GitHub ↗
(
  labelConfig: TargetLabelConfig,
  githubTargetBranch: string,
)

Source from the content-addressed store, hash-verified

121 * @throws {InvalidTargetBranchError} Invalid Github target branch has been selected.
122 */
123export 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}

Callers 2

getBranchesForLabelFunction · 0.85

Calls

no outgoing calls

Tested by 1

getBranchesForLabelFunction · 0.68