diff --git a/generate.php b/generate.php index e566ec6..d21a203 100644 --- a/generate.php +++ b/generate.php @@ -86,6 +86,7 @@ function getClassByNbCommitsAhead(int $nbCommitsAhead): string 'multiple_milestones' => [], 'version_mismatch' => [], 'wrong_version' => [], + 'missing_zip' => [], ]; $template = file_get_contents(__DIR__.'/src/template.tpl'); @@ -108,6 +109,10 @@ function getClassByNbCommitsAhead(int $nbCommitsAhead): string $lastReleaseInformation[] = 'Release not published yet!'; $notifications['not_published'][] = $moduleName; } + if ($data['latestRelease']['built_zip'] === false) { + $lastReleaseInformation[] = 'Release is missing built ZIP!'; + $notifications['missing_zip'][] = $moduleName; + } } else { $lastReleaseInformation[] = 'No release yet'; } @@ -252,6 +257,11 @@ function getClassByNbCommitsAhead(int $nbCommitsAhead): string Versions of modules ' . implode(', ', $notifications['wrong_version']) . ' don\'t match the last or any current open milestone. '; } +if (!empty($notifications['missing_zip'])) { + $notifications_html .= ''; +} if (!empty($notifications['not_published'])) { $notifications_html .= '