Skip to content

Commit eb2cb74

Browse files
authored
Merge pull request #211 from PrestaShop/qaAutomNightlyBlockwishlist
`slack:notifier` : Added blockwishlist for checking the nightly
2 parents 7ce98b3 + 52c3a50 commit eb2cb74

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

src/App/Command/SlackNotifierCommand.php

+20-5
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,26 @@ class SlackNotifierCommand extends Command
116116
];
117117

118118
/**
119-
* @var array<string>
119+
* @var array<string, array<string>>
120120
*/
121121
private const CAMPAIGN_SUPPORT = [
122-
'functional',
123-
'autoupgrade',
122+
'functional' => [
123+
'1.7.8.x',
124+
'8.0.x',
125+
'8.1.x',
126+
'develop',
127+
],
128+
'autoupgrade' => [
129+
'1.7.8.x',
130+
'8.0.x',
131+
'8.1.x',
132+
'develop',
133+
],
134+
'blockwishlist' => [
135+
'8.0.5',
136+
'8.1.4',
137+
'nightly',
138+
],
124139
];
125140

126141
protected function configure()
@@ -383,9 +398,9 @@ protected function checkStatusNightly(): string
383398
{
384399
$slackMessage = ':notebook_with_decorative_cover: Nightly Board :notebook_with_decorative_cover:' . PHP_EOL;
385400

386-
foreach (self::CAMPAIGN_SUPPORT as $campaign) {
401+
foreach (self::CAMPAIGN_SUPPORT as $campaign => $branches) {
387402
$slackMessage .= ' • Campaign `' . $campaign . '`' . PHP_EOL;
388-
foreach (self::BRANCH_SUPPORT as $branch) {
403+
foreach ($branches as $branch) {
389404
$report = $this->nightlyBoard->getReport(date('Y-m-d'), $branch, $campaign);
390405
if (empty($report)) {
391406
continue;

0 commit comments

Comments
 (0)