cz-conventional-changelog
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -60,3 +60,3 @@ "format cjs"; | ||
name: 'scope', | ||
message: 'Denote the scope of this change ($location, $browser, $compile, etc.):\n' | ||
message: 'What is the scope of this change (e.g. component or file name)? (press enter to skip)\n' | ||
}, { | ||
@@ -69,11 +69,27 @@ type: 'input', | ||
name: 'body', | ||
message: 'Provide a longer description of the change:\n' | ||
message: 'Provide a longer description of the change: (press enter to skip)\n' | ||
}, { | ||
type: 'confirm', | ||
name: 'isBreaking', | ||
message: 'Are there any breaking changes?', | ||
default: false | ||
}, { | ||
type: 'input', | ||
name: 'breaking', | ||
message: 'List any breaking changes:\n' | ||
message: 'Describe the breaking changes:\n', | ||
when: function(answers) { | ||
return answers.isBreaking; | ||
} | ||
}, { | ||
type: 'confirm', | ||
name: 'isIssueAffected', | ||
message: 'Does this change affect any open issues?', | ||
default: false | ||
}, { | ||
type: 'input', | ||
name: 'issues', | ||
message: 'List any issues closed by this change:\n' | ||
message: 'Add issue references (e.g. "fix #123", "re #123".):\n', | ||
when: function(answers) { | ||
return answers.isIssueAffected; | ||
} | ||
} | ||
@@ -102,7 +118,7 @@ ]).then(function(answers) { | ||
// Apply breaking change prefix, removing it if already present | ||
var breaking = answers.breaking.trim(); | ||
var breaking = answers.breaking ? answers.breaking.trim() : ''; | ||
breaking = breaking ? 'BREAKING CHANGE: ' + breaking.replace(/^BREAKING CHANGE: /, '') : ''; | ||
breaking = wrap(breaking, wrapOptions); | ||
var issues = wrap(answers.issues, wrapOptions); | ||
var issues = answers.issues ? wrap(answers.issues, wrapOptions) : ''; | ||
@@ -109,0 +125,0 @@ var footer = filter([ breaking, issues ]).join('\n\n'); |
{ | ||
"name": "cz-conventional-changelog", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Commitizen adapter following the conventional-changelog format.", | ||
@@ -22,3 +22,2 @@ "main": "index.js", | ||
"longest": "^1.0.1", | ||
"pad-right": "^0.2.2", | ||
"right-pad": "^1.0.1", | ||
@@ -31,5 +30,7 @@ "word-wrap": "^1.0.3" | ||
}, | ||
"czConfig": { | ||
"path": "./" | ||
"config": { | ||
"commitizen": { | ||
"path": "./index.js" | ||
} | ||
} | ||
} |
6671
5
118
- Removedpad-right@^0.2.2
- Removedpad-right@0.2.2(transitive)
- Removedrepeat-string@1.6.1(transitive)