File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed
Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments