We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d960f51 commit faea957Copy full SHA for faea957
index.js
@@ -402,10 +402,8 @@ const generateReport = async (options) => {
402
403
// get date for quality gate status, day month year format
404
data.qualityGateStatusPeriodDate = new Date(
405
- json.projectStatus.period.date
406
- )
407
- .toISOString()
408
- .substring(0, 10);
+ json.projectStatus.period?.date ?? (json.projectStatus.periods.length > 0 ? json.projectStatus.periods[0].date : undefined)
+ ).toISOString().substring(0, 10);
409
410
if (json.projectStatus.conditions) {
411
for (const condition of json.projectStatus.conditions) {
0 commit comments