Skip to content

Commit 270abd3

Browse files
committed
fix(ng-dev): prevent fallthrough for switch cases in target label checks
1 parent 30d78d3 commit 270abd3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ng-dev/pr/common/validation/assert-allowed-target-label.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class Validation extends PullRequestValidation {
7373
if (hasDeprecations && !releaseTrains.isFeatureFreeze()) {
7474
throw this._createHasDeprecationsError(targetLabel);
7575
}
76+
break;
7677
case targetLabels['TARGET_AUTOMATION']:
7778
if (!automationBots.includes(pullRequest.author.login)) {
7879
throw this._createUserUsingAutomationLabelError(targetLabel, pullRequest.author.login);

0 commit comments

Comments
 (0)