Comparing version 1.0.1 to 1.0.2
@@ -52,3 +52,6 @@ const { pad, date_ago, days_between, num_reducer, replace } = require('./util') | ||
function cycle({fields, changelog}, todo, done) { | ||
const start = new Date(date_to_status(todo, changelog)) | ||
// When issues are moved directly to 'done' status, without going | ||
// thru 'todo', date_to_status() returns undefined, in this case | ||
// fields.created will be used instead of 'todo' date | ||
const start = new Date(date_to_status(todo, changelog) || fields.created) | ||
const finish = new Date(date_to_status(done, changelog)) | ||
@@ -116,3 +119,2 @@ | ||
// @TODO: this is not working well | ||
const cycleTimeAvg = issues | ||
@@ -119,0 +121,0 @@ .map(issue => cycle(issue, opts.todo, opts.done)) |
{ | ||
"name": "kbme", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Gather kanban metrics from your JIRA instance", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16841
304