cz-conventional-pivotal-tracker
Advanced tools
Comparing version 0.0.0 to 0.1.0
10
index.js
@@ -7,2 +7,3 @@ "format cjs" | ||
const padend = require('lodash.padend') | ||
const startsWith = require('lodash.startswith') | ||
@@ -108,2 +109,9 @@ function readConfigFile() { | ||
message: 'Pivotal Tracker Story ID:\n', | ||
validate: function(input) { | ||
if (input && !startsWith(input, '\#')) { | ||
return 'Pivotal Tracker Story ID must start with \'#\''; | ||
} else { | ||
return true; | ||
} | ||
} | ||
}, { | ||
@@ -146,3 +154,3 @@ type: 'list', | ||
if (answers.story) { | ||
pt = `[${answers.workflow} #${answers.story}]` | ||
pt = `[${answers.workflow} ${answers.story}]` | ||
headTrimLength = maxLineWidth - pt.length | ||
@@ -149,0 +157,0 @@ } |
{ | ||
"name": "cz-conventional-pivotal-tracker", | ||
"version": "0.0.0", | ||
"version": "0.1.0", | ||
"description": "A commitizen adapter with support for Pivotal Tracker.", | ||
@@ -24,3 +24,4 @@ "main": "index.js", | ||
"find-config": "^1.0.0", | ||
"lodash.padend": "^4.6.0" | ||
"lodash.padend": "^4.6.0", | ||
"lodash.startswith": "^4.2.0" | ||
}, | ||
@@ -27,0 +28,0 @@ "devDependencies": { |
7074
149
4
+ Addedlodash.startswith@^4.2.0
+ Addedlodash.startswith@4.2.1(transitive)