File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
ng-dev/pr/common/targeting Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,17 @@ export async function getTargetLabelsForActiveReleaseTrains(
137
137
return [ nextBranchName , releaseCandidate . branchName ] ;
138
138
} ,
139
139
} ,
140
+ {
141
+ name : TargetLabelName . FEATURE_BRANCH ,
142
+ branches : ( githubTargetBranch ) => {
143
+ if ( isVersionBranch ( githubTargetBranch ) || githubTargetBranch === nextBranchName ) {
144
+ throw new InvalidTargetBranchError (
145
+ '"target: feature" pull requests cannot target a releasable branch' ,
146
+ ) ;
147
+ }
148
+ return [ githubTargetBranch ] ;
149
+ } ,
150
+ } ,
140
151
] ;
141
152
142
153
// LTS branches can only be determined if the release configuration is defined, and must be added
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export enum TargetLabelName {
33
33
PATCH = 'target: patch' ,
34
34
RELEASE_CANDIDATE = 'target: rc' ,
35
35
LONG_TERM_SUPPORT = 'target: lts' ,
36
+ FEATURE_BRANCH = 'target: feature' ,
36
37
}
37
38
38
39
/**
You can’t perform that action at this time.
0 commit comments