File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ export async function decideReleaseStrategy({
321
321
*
322
322
* Gracefully exits if there is none.
323
323
*/
324
- async function getCommits ( ) : Promise < {
324
+ async function getCommits ( force ?: boolean ) : Promise < {
325
325
validCommits : PassedCommit [ ] ;
326
326
skippedCommits : string ;
327
327
} > {
@@ -354,7 +354,7 @@ async function getCommits(): Promise<{
354
354
validCommits . push ( commit ) ;
355
355
}
356
356
357
- if ( validCommits . length === 0 ) {
357
+ if ( ! force && validCommits . length === 0 ) {
358
358
console . log (
359
359
chalk . black . bgYellow ( '[INFO]' ) ,
360
360
`Skipping release because no valid commit has been added since \`released\` tag.` ,
@@ -505,7 +505,7 @@ export async function createReleasePR({
505
505
}
506
506
507
507
console . log ( 'Searching for commits since last release...' ) ;
508
- const { validCommits, skippedCommits } = await getCommits ( ) ;
508
+ const { validCommits, skippedCommits } = await getCommits ( releaseType !== undefined ) ;
509
509
510
510
const versions = await decideReleaseStrategy ( {
511
511
versions : readVersions ( ) ,
You can’t perform that action at this time.
0 commit comments