From 52c3a50dbfcd476049d8a034a7435b9f00e63e8e Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Mon, 26 Feb 2024 11:28:20 +0100 Subject: [PATCH] `slack:notifier` : Added blockwishlist for checking the nightly --- src/App/Command/SlackNotifierCommand.php | 25 +++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/App/Command/SlackNotifierCommand.php b/src/App/Command/SlackNotifierCommand.php index ba2766f..2516208 100644 --- a/src/App/Command/SlackNotifierCommand.php +++ b/src/App/Command/SlackNotifierCommand.php @@ -116,11 +116,26 @@ class SlackNotifierCommand extends Command ]; /** - * @var array + * @var array> */ private const CAMPAIGN_SUPPORT = [ - 'functional', - 'autoupgrade', + 'functional' => [ + '1.7.8.x', + '8.0.x', + '8.1.x', + 'develop', + ], + 'autoupgrade' => [ + '1.7.8.x', + '8.0.x', + '8.1.x', + 'develop', + ], + 'blockwishlist' => [ + '8.0.5', + '8.1.4', + 'nightly', + ], ]; protected function configure() @@ -383,9 +398,9 @@ protected function checkStatusNightly(): string { $slackMessage = ':notebook_with_decorative_cover: Nightly Board :notebook_with_decorative_cover:' . PHP_EOL; - foreach (self::CAMPAIGN_SUPPORT as $campaign) { + foreach (self::CAMPAIGN_SUPPORT as $campaign => $branches) { $slackMessage .= ' • Campaign `' . $campaign . '`' . PHP_EOL; - foreach (self::BRANCH_SUPPORT as $branch) { + foreach ($branches as $branch) { $report = $this->nightlyBoard->getReport(date('Y-m-d'), $branch, $campaign); if (empty($report)) { continue;