From 4edbd9427e6fe2adfc2a7c954ac253a4ecd7dbc7 Mon Sep 17 00:00:00 2001 From: pxthinh Date: Sat, 2 Dec 2023 23:39:11 +0700 Subject: [PATCH] feat: add the ignore message config variable --- config/telegram-git-notifier.php | 2 ++ resources/views/events/github/issue_comment/created.blade.php | 2 +- resources/views/events/github/issue_comment/deleted.blade.php | 2 +- resources/views/events/github/issue_comment/edited.blade.php | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/telegram-git-notifier.php b/config/telegram-git-notifier.php index 2621b01..a47cb58 100644 --- a/config/telegram-git-notifier.php +++ b/config/telegram-git-notifier.php @@ -78,6 +78,8 @@ /** Set the path to the view file */ 'view' => [ + 'ignore-message' => env('IGNORE_MESSAGE', 'ignore-message'), + 'namespace' => env('TGN_VIEW_NAMESPACE', 'tg-notifier'), 'default' => env( diff --git a/resources/views/events/github/issue_comment/created.blade.php b/resources/views/events/github/issue_comment/created.blade.php index 4c6ce02..e811b92 100644 --- a/resources/views/events/github/issue_comment/created.blade.php +++ b/resources/views/events/github/issue_comment/created.blade.php @@ -19,5 +19,5 @@ @include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event')) @include('tg-notifier::events.shared.partials.github._body', compact('payload', 'event')) @else -IGNORE_MESSAGE +{{ config('telegram-git-notifier.view.ignore-message') }} @endif diff --git a/resources/views/events/github/issue_comment/deleted.blade.php b/resources/views/events/github/issue_comment/deleted.blade.php index e52062f..4534c34 100644 --- a/resources/views/events/github/issue_comment/deleted.blade.php +++ b/resources/views/events/github/issue_comment/deleted.blade.php @@ -19,5 +19,5 @@ @include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event')) @include('tg-notifier::events.shared.partials.github._body', compact('payload', 'event')) @else -IGNORE_MESSAGE +{{ config('telegram-git-notifier.view.ignore-message') }} @endif diff --git a/resources/views/events/github/issue_comment/edited.blade.php b/resources/views/events/github/issue_comment/edited.blade.php index 344afab..8a7018a 100644 --- a/resources/views/events/github/issue_comment/edited.blade.php +++ b/resources/views/events/github/issue_comment/edited.blade.php @@ -19,5 +19,5 @@ @include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event')) @include('tg-notifier::events.shared.partials.github._body', compact('payload', 'event')) @else -IGNORE_MESSAGE +{{ config('telegram-git-notifier.view.ignore-message') }} @endif