jira-precommit-hook
Advanced tools
Comparing version 1.1.3 to 1.2.0
@@ -13,10 +13,2 @@ 'use strict'; | ||
var _initiativeJs = require('./initiative.js'); | ||
var initStrat = _interopRequireWildcard(_initiativeJs); | ||
var _epicJs = require('./epic.js'); | ||
var epicStrat = _interopRequireWildcard(_epicJs); | ||
var _storyJs = require('./story.js'); | ||
@@ -26,17 +18,14 @@ | ||
var _taskJs = require('./task.js'); | ||
var _notAllowedJs = require('./not-allowed.js'); | ||
var taskStrat = _interopRequireWildcard(_taskJs); | ||
var notAllowedStrat = _interopRequireWildcard(_notAllowedJs); | ||
exports['default'] = { | ||
Initiative: initStrat, | ||
Epic: epicStrat, | ||
Story: storyStrat, | ||
'Sub-task': storyStrat, | ||
'Maintenance Task': bugMtStrat, | ||
'Deployment Task': bugMtStrat, | ||
'Feature Defect': storyStrat, | ||
Bug: bugMtStrat, | ||
Task: taskStrat | ||
Unknown: notAllowedStrat | ||
}; | ||
module.exports = exports['default']; |
'use strict'; | ||
var _Promise = require('babel-runtime/core-js/promise')['default']; | ||
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default']; | ||
@@ -25,3 +23,3 @@ | ||
if (!_issueStrategiesIndexJs2['default'][content.fields.issuetype.name]) { | ||
return _Promise.reject(new Error(issueKey + ' does not have a valid issuetype')); | ||
return _issueStrategiesIndexJs2['default'].Unknown.apply(content, jiraClientAPI); | ||
} | ||
@@ -28,0 +26,0 @@ |
{ | ||
"name": "jira-precommit-hook", | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"description": "Git commit hook to verify commit messages are tagged with a JIRA issue number", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
26605
22
537