mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-18 13:20:41 +00:00
Merge pull request #6837 from coollabsio/andrasbacsai/custom-webhooks
feat: add custom webhook notification support
This commit is contained in:
@@ -7,6 +7,7 @@ use App\Notifications\Channels\EmailChannel;
|
||||
use App\Notifications\Channels\PushoverChannel;
|
||||
use App\Notifications\Channels\SlackChannel;
|
||||
use App\Notifications\Channels\TelegramChannel;
|
||||
use App\Notifications\Channels\WebhookChannel;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
trait HasNotificationSettings
|
||||
@@ -31,6 +32,7 @@ trait HasNotificationSettings
|
||||
'telegram' => $this->telegramNotificationSettings,
|
||||
'slack' => $this->slackNotificationSettings,
|
||||
'pushover' => $this->pushoverNotificationSettings,
|
||||
'webhook' => $this->webhookNotificationSettings,
|
||||
default => null,
|
||||
};
|
||||
}
|
||||
@@ -78,6 +80,7 @@ trait HasNotificationSettings
|
||||
'telegram' => TelegramChannel::class,
|
||||
'slack' => SlackChannel::class,
|
||||
'pushover' => PushoverChannel::class,
|
||||
'webhook' => WebhookChannel::class,
|
||||
];
|
||||
|
||||
if ($event === 'general') {
|
||||
|
||||
Reference in New Issue
Block a user