Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 7 additions & 1 deletion .github/workflows/matomo-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Action for running tests
# This file has been automatically created.
# To recreate it you can run this command
# ./console generate:test-action --plugin="Slack" --php-versions="7.2,8.4" --schedule-cron="0 5 * * 6"
# ./console generate:test-action --plugin="Slack" --php-versions="7.2,8.4" --dependent-plugins="matomo-org/plugin-CustomAlerts" --schedule-cron="0 5 * * 6"

name: Plugin Slack Tests

Expand Down Expand Up @@ -56,6 +56,9 @@ jobs:
redis-service: true
artifacts-pass: ${{ secrets.ARTIFACTS_PASS }}
upload-artifacts: ${{ matrix.php == '7.2' && matrix.target == 'maximum_supported_matomo' }}
artifacts-protected: true
dependent-plugins: 'matomo-org/plugin-CustomAlerts'
github-token: ${{ secrets.TESTS_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
UI:
runs-on: ubuntu-24.04
steps:
Expand All @@ -74,3 +77,6 @@ jobs:
redis-service: true
artifacts-pass: ${{ secrets.ARTIFACTS_PASS }}
upload-artifacts: true
artifacts-protected: true
dependent-plugins: 'matomo-org/plugin-CustomAlerts'
github-token: ${{ secrets.TESTS_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
26 changes: 26 additions & 0 deletions EnrichTriggeredAlerts.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\Plugins\Slack;

use Piwik\Container\StaticContainer;
use Piwik\Plugins\CustomAlerts\Controller;

class EnrichTriggeredAlerts extends Controller
{
public function __construct()
{
parent::__construct(StaticContainer::get('Piwik\Plugins\API\ProcessedReport'));
}

public function enrichTriggeredAlerts($triggeredAlerts)
{
return parent::enrichTriggeredAlerts($triggeredAlerts);
}
}
Loading