@@ -298,7 +298,7 @@ func run() int {
298
298
os .Exit (0 )
299
299
}
300
300
301
- if result .prEntry .title == "" {
301
+ if result .prEntry == nil || result . prEntry .title == "" {
302
302
continue
303
303
}
304
304
@@ -512,12 +512,16 @@ func generateReleaseNoteEntry(c *commit) (*releaseNoteEntry, error) {
512
512
if strings .Contains (entry .title , "CAEP" ) || strings .Contains (entry .title , "proposal" ) {
513
513
entry .section = proposals
514
514
}
515
- case strings .HasPrefix (entry .title , ":seedling:" ), strings .HasPrefix (entry .title , "🌱" ):
516
- entry .section = other
517
- entry .title = removePrefixes (entry .title , []string {":seedling:" , "🌱" })
518
515
case strings .HasPrefix (entry .title , ":warning:" ), strings .HasPrefix (entry .title , "⚠️" ):
519
516
entry .section = warning
520
517
entry .title = removePrefixes (entry .title , []string {":warning:" , "⚠️" })
518
+ case strings .HasPrefix (entry .title , "🚀" ), strings .HasPrefix (entry .title , "🌱 Release v1." ):
519
+ // TODO(g-gaston): remove the second condition using 🌱 prefix once 1.6 is released
520
+ // Release trigger PRs from previous releases are not included in the release notes
521
+ return nil , nil
522
+ case strings .HasPrefix (entry .title , ":seedling:" ), strings .HasPrefix (entry .title , "🌱" ):
523
+ entry .section = other
524
+ entry .title = removePrefixes (entry .title , []string {":seedling:" , "🌱" })
521
525
default :
522
526
entry .section = unknown
523
527
}
0 commit comments