Skip to content

slack:notifier : Fixed report for nightly (Update Matrix & Fix error) #357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/App/Command/SlackNotifierCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ class SlackNotifierCommand extends Command
*/
private const CAMPAIGN_SUPPORT = [
'functional' => [
'1.7.8.x' => ['mysql'],
'8.0.x' => ['mysql'],
'8.1.x' => ['mysql'],
'8.2.x' => ['mysql'],
Expand All @@ -138,6 +137,7 @@ class SlackNotifierCommand extends Command
'blockwishlist' => [
'8.0.5' => ['mysql'],
'8.1.7' => ['mysql'],
'9.0.x' => ['mysql'],
'nightly' => ['mysql'],
],
// ps_cashondelivery: https://github.com/PrestaShop/ps_cashondelivery/blob/dev/.github/workflows/ui-test.yml#L24-L30
Expand All @@ -147,6 +147,8 @@ class SlackNotifierCommand extends Command
'1.7.8.11' => ['mysql'],
'8.0.5' => ['mysql'],
'8.1.6' => ['mysql'],
'8.2.1' => ['mysql'],
'9.0.x' => ['mysql'],
'nightly' => ['mysql'],
],
];
Expand Down Expand Up @@ -452,7 +454,7 @@ protected function checkStatusNightlyAutoUpgrade(): string
$numOK = $numKO = 0;
foreach ($reports as $report) {
// Fetch informations
preg_match('/([0-9\.]+)\s\(Channel:\s([a-z]+)\sPHP:\s([0-9+\.]+)\)/', $report['version'], $datumReport);
preg_match('/([0-9\.]+)\s\(Channel:\s([a-z]+)?\sPHP:\s([0-9+\.]+)\)/', $report['version'], $datumReport);
list(, $version, $channel, $php) = $datumReport;
$minorVersion = substr_count($version, '.') === 3 ? substr($version, 0, 5) : substr($version, 0, 3);

Expand Down
Loading