@@ -183,6 +183,7 @@ function getLastTags(gren, releases) {
183183
184184 var tags = response . data ;
185185 var filteredTags = ( getSelectedTags ( gren . options . tags , tags ) || [ tags [ 0 ] , tags [ 1 ] ] )
186+ . filter ( Boolean )
186187 . map ( function ( tag ) {
187188 var tagRelease = releases && releases . filter ( function ( release ) {
188189 return release . tag_name === tag . name ;
@@ -419,6 +420,7 @@ function templateIssueBody(body, rangeBody) {
419420 * @return {string }
420421 */
421422function generateCommitsBody ( gren , messages ) {
423+ messages . length === 1 && messages . push ( null ) ;
422424 return messages
423425 . slice ( 0 , - 1 )
424426 . filter ( function ( message ) {
@@ -483,8 +485,8 @@ function getCommitsBetweenTwo(gren, since, until) {
483485 } ;
484486
485487 return gren . repo . listCommits ( options )
486- . then ( function ( commits ) {
487- return commitMessages ( commits ) ;
488+ . then ( function ( response ) {
489+ return commitMessages ( response . data ) ;
488490 } ) ;
489491}
490492
@@ -509,6 +511,7 @@ function getCommitBlocks(gren, releaseRanges) {
509511 . then ( function ( commits ) {
510512 return {
511513 id : range [ 0 ] . id ,
514+ name : gren . options . prefix + range [ 0 ] . name ,
512515 release : range [ 0 ] . name ,
513516 date : range [ 0 ] . date ,
514517 body : generateCommitsBody ( gren , commits ) + '\n'
0 commit comments