@twexchangesolutions/hubot-jira-deployment
Advanced tools
Comparing version 0.0.10 to 0.0.12
@@ -12,3 +12,3 @@ "use strict"; | ||
function getDeployScriptRegex() { | ||
return (/\s*(deploy|check)\s+(([A-Z]+)-\d+)/i | ||
return (/\s*(deploy|check)\s+(([A-Z]+)-[0-9]+)\s*$/i | ||
); | ||
@@ -15,0 +15,0 @@ } |
@@ -14,5 +14,5 @@ 'use strict'; | ||
var _issueValidationStrategiesYellowStrategy = require('../issue-validation-strategies/yellow-strategy'); | ||
var _yellowStrategy = require('./yellow-strategy'); | ||
var _issueValidationStrategiesYellowStrategy2 = _interopRequireDefault(_issueValidationStrategiesYellowStrategy); | ||
var _yellowStrategy2 = _interopRequireDefault(_yellowStrategy); | ||
@@ -24,3 +24,3 @@ function apply(issue, jiraClient) { | ||
if (realParent.fields.issuetype.name === 'Initiative') { | ||
return (0, _issueValidationStrategiesYellowStrategy2['default'])(realParent).then(function (resultObject) { | ||
return (0, _yellowStrategy2['default'])(realParent).then(function (resultObject) { | ||
if (resultObject.errors.length !== 0) { | ||
@@ -27,0 +27,0 @@ resultObject.errors = [].concat(_toConsumableArray(resultObject.errors), ['Issue ' + issue.key + '\'s linked Initiative (' + realParent.key + ') is not in a yellow state (Approved, On Deck, or In Progress).']); |
@@ -14,5 +14,5 @@ 'use strict'; | ||
var _issueValidationStrategiesClosedStrategy = require('../issue-validation-strategies/closed-strategy'); | ||
var _closedStrategy = require('./closed-strategy'); | ||
var _issueValidationStrategiesClosedStrategy2 = _interopRequireDefault(_issueValidationStrategiesClosedStrategy); | ||
var _closedStrategy2 = _interopRequireDefault(_closedStrategy); | ||
@@ -24,3 +24,3 @@ function apply(issue, jiraClient) { | ||
return _Promise.all(issue.fields.subtasks.map(function (x) { | ||
return (0, _issueValidationStrategiesClosedStrategy2['default'])(x); | ||
return (0, _closedStrategy2['default'])(x); | ||
})).then(function (resultList) { | ||
@@ -27,0 +27,0 @@ return resultList.reduce(function (acc, resultObject) { |
@@ -47,5 +47,6 @@ 'use strict'; | ||
function parseGitShasFromString(toParse) { | ||
var stringThisIsParsing = toParse || ''; | ||
var pattern = /\b[a-f0-9]{40}\b/gi; | ||
var references = toParse.match(pattern); | ||
var references = stringThisIsParsing.match(pattern); | ||
if (references) { | ||
@@ -52,0 +53,0 @@ references = references.map(function (x) { |
{ | ||
"name": "@twexchangesolutions/hubot-jira-deployment", | ||
"version": "0.0.10", | ||
"version": "0.0.12", | ||
"description": "Hook used to ensure that all issues being deployed to production meet audit requirements", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
58677
25
1211