Skip to content

Commit

Permalink
fix incorrect access of milestone
Browse files Browse the repository at this point in the history
  • Loading branch information
edd committed Mar 5, 2024
1 parent 4ec15ff commit 182b1c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/check-references.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}

Expand Down

0 comments on commit 182b1c6

Please sign in to comment.