Skip to content
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

slack:notifier : Fixed URL of download of file for HB #215

Merged
merged 1 commit into from
Mar 5, 2024
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
4 changes: 2 additions & 2 deletions src/App/Command/SlackNotifierCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ protected function checkUITestUpdates(): string
}

// Check theme Hummingbird
$content = $this->github->getClient()->api('repo')->contents()->download('PrestaShop', 'PrestaShop', 'tests/UI/commonTests/FO/hummingbird.ts', 'refs/heads/develop');
$content = $this->github->getClient()->api('repo')->contents()->download('PrestaShop', 'PrestaShop', 'tests/UI/commonTests/BO/design/hummingbird.ts', 'refs/heads/develop');
// Search version in code
preg_match('#https:\/\/github.com\/PrestaShop\/hummingbird\/releases\/download\/([v\.0-9]+)\/hummingbird.zip#m', $content, $matches);
$curVersion = $matches[1];
Expand All @@ -392,7 +392,7 @@ protected function checkUITestUpdates(): string

if ($data['name'] !== $curVersion) {
$hasUpdates = true;
$slackMessage .= ' • :bird: <https://github.com/PrestaShop/PrestaShop/blob/develop/tests/UI/commonTests/FO/hummingbird.ts|hummingbird>: Code (`' . $curVersion . '`) - Release (:warning: `' . $data['name'] . '`)';
$slackMessage .= ' • :bird: <https://github.com/PrestaShop/PrestaShop/blob/develop/tests/UI/commonTests/BO/design/hummingbird.ts|hummingbird>: Code (`' . $curVersion . '`) - Release (:warning: `' . $data['name'] . '`)';
$slackMessage .= PHP_EOL;
}

Expand Down
Loading