Skip to content

Commit 30d78d3

Browse files
committed
feat(ng-dev): allow target: automation to target next branch (#3057)
Pull requests with the `target: automation` label are now able to target the `next` branch. This is useful for automating changes that should land in the next major version. PR Close #3057
1 parent 3cca7f4 commit 30d78d3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/local-actions/branch-manager/main.js

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

ng-dev/pr/common/targeting/labels.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ export async function getTargetLabelConfigsForActiveReleaseTrains(
156156
{
157157
label: targetLabels['TARGET_AUTOMATION'],
158158
branches: (githubTargetBranch) => {
159-
if (!isVersionBranch(githubTargetBranch)) {
159+
if (githubTargetBranch !== nextBranchName && !isVersionBranch(githubTargetBranch)) {
160160
throw new InvalidTargetBranchError(
161-
'"target: automation" pull requests can only target a release branch',
161+
'"target: automation" pull requests can only target a releasable branch',
162162
);
163163
}
164164
return [githubTargetBranch];

0 commit comments

Comments
 (0)