diff --git a/package.json b/package.json index eea2691..780ab32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vegaprotocol/approbation", - "version": "4.7.1", + "version": "4.7.2", "description": "Match Acceptance Criteria Codes with the tests that test them", "engine": ">= 18", "bin": "./bin/approbation.js", diff --git a/src/check-references.js b/src/check-references.js index 3b2826a..e71da2b 100644 --- a/src/check-references.js +++ b/src/check-references.js @@ -430,7 +430,7 @@ function checkReferences(specsGlob, testsGlob, categoriesPath, ignoreGlob, featu const skipCategories = ['Category', 'Specs', 'Acceptable'] let jenkinsLine = `All ACs: ${Object.entries(categories.pop()).map(([key, value]) => skipCategories.indexOf(key) === -1 ? `*${key}*: ${value}` : '').join(' ').trim()}` - if (currentMilestone) { + if (currentMilestone && currentMilestone.Milestone && currentMilestone.Coverage) { jenkinsLine += `\r\nCurrent milestone ACs: *${currentMilestone.Milestone}*: ${currentMilestone.Coverage}` }