From 182b1c62f51e7262ffacb69d419eba13e6d617e9 Mon Sep 17 00:00:00 2001 From: Edd Date: Tue, 5 Mar 2024 17:41:49 +0000 Subject: [PATCH] fix incorrect access of milestone --- src/check-references.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}` }