Skip to content

Commit

Permalink
fix: resolve issue
Browse files Browse the repository at this point in the history
  • Loading branch information
neikvon committed Sep 29, 2018
1 parent 7975550 commit 56e7e71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ function format (answers) {

const issues = wrap(answers.issues, 100)
if (issues) {
commit += '\n\n' + issues
const issuesIds = issues.match(/#\d+/g)
if (issuesIds) {
commit += '\n\n' + issuesIds.map(issue => `fixed ${issue}`).join(', ')
}
}

let breaking = answers.breaking.trim()
Expand Down

0 comments on commit 56e7e71

Please sign in to comment.