File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -289,8 +289,14 @@ export abstract class BaseStrategy implements Strategy {
289289 const mergeCommitRegex =
290290 / ^ M e r g e p u l l r e q u e s t # \d + f r o m [ ^ / ] + \/ r e l e a s e - p l e a s e ( - - [ \w - ] + ) + $ / ;
291291
292- // if there are no commits that are not release pr merge commits, there's nothing to include in a new release PR
293- if ( commits . every ( c => mergeCommitRegex . test ( c . message ) ) ) {
292+ // if there are no commits that are not either release pr merge commits or metadata commits,
293+ // there's nothing to include in a new release PR
294+ if (
295+ commits . every (
296+ c =>
297+ mergeCommitRegex . test ( c . message ) || c . message === 'codegen metadata'
298+ )
299+ ) {
294300 this . logger . info (
295301 `No commits to consider for ${ this . path } , all commits are merges of release PRs`
296302 ) ;
You can’t perform that action at this time.
0 commit comments