Skip to content

Commit 9729da3

Browse files
committed
fix(ng-dev): only fail PR merge for target: automation if its a non-bot
We should only fail if a target: automation label is used for a non-bot user
1 parent 30d78d3 commit 9729da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Validation extends PullRequestValidation {
7474
throw this._createHasDeprecationsError(targetLabel);
7575
}
7676
case targetLabels['TARGET_AUTOMATION']:
77-
if (!automationBots.includes(pullRequest.author.login)) {
77+
if (automationBots.includes(pullRequest.author.login)) {
7878
throw this._createUserUsingAutomationLabelError(targetLabel, pullRequest.author.login);
7979
}
8080
break;

0 commit comments

Comments
 (0)