From 419a41a60a0de424b26f301d310063b7ab00ecb3 Mon Sep 17 00:00:00 2001 From: kenautomus Date: Fri, 9 Feb 2024 14:44:39 +0700 Subject: [PATCH] create star action template --- lang/de/events/github/star.php | 13 +++++++++++++ lang/en/events/github/star.php | 13 +++++++++++++ lang/en/events/github/watch.php | 2 +- lang/ja/events/github/star.php | 13 +++++++++++++ lang/vi/events/github/star.php | 13 +++++++++++++ .../views/events/github/meta/deleted.blade.php | 6 +++--- .../views/events/github/star/created.blade.php | 12 ++++++++++++ .../views/events/github/star/deleted.blade.php | 12 ++++++++++++ 8 files changed, 80 insertions(+), 4 deletions(-) create mode 100644 lang/de/events/github/star.php create mode 100644 lang/en/events/github/star.php create mode 100644 lang/ja/events/github/star.php create mode 100644 lang/vi/events/github/star.php create mode 100644 resources/views/events/github/star/created.blade.php create mode 100644 resources/views/events/github/star/deleted.blade.php diff --git a/lang/de/events/github/star.php b/lang/de/events/github/star.php new file mode 100644 index 0000000..695f574 --- /dev/null +++ b/lang/de/events/github/star.php @@ -0,0 +1,13 @@ + [ + 'title' => '🎉 New Star 🌟 from 🦑:user', + 'seeder' => '👤 Starer: :seeder_login 👀', + ], + + 'deleted' => [ + 'title' => '🚫 Star 🌟 Removed from 🦑:user', + 'remover' => '👤 Remover: :seeder_login 👀', + ], +]; diff --git a/lang/en/events/github/star.php b/lang/en/events/github/star.php new file mode 100644 index 0000000..695f574 --- /dev/null +++ b/lang/en/events/github/star.php @@ -0,0 +1,13 @@ + [ + 'title' => '🎉 New Star 🌟 from 🦑:user', + 'seeder' => '👤 Starer: :seeder_login 👀', + ], + + 'deleted' => [ + 'title' => '🚫 Star 🌟 Removed from 🦑:user', + 'remover' => '👤 Remover: :seeder_login 👀', + ], +]; diff --git a/lang/en/events/github/watch.php b/lang/en/events/github/watch.php index 706de28..f56af82 100644 --- a/lang/en/events/github/watch.php +++ b/lang/en/events/github/watch.php @@ -2,7 +2,7 @@ return [ 'started' => [ - 'title' => '🎉 New Started form 🦑:user', + 'title' => '🎉 (Watch) New Star 🌟 from 🦑:user', 'watcher' => '👤 Watcher: :sender_login 👀', ], ]; diff --git a/lang/ja/events/github/star.php b/lang/ja/events/github/star.php new file mode 100644 index 0000000..695f574 --- /dev/null +++ b/lang/ja/events/github/star.php @@ -0,0 +1,13 @@ + [ + 'title' => '🎉 New Star 🌟 from 🦑:user', + 'seeder' => '👤 Starer: :seeder_login 👀', + ], + + 'deleted' => [ + 'title' => '🚫 Star 🌟 Removed from 🦑:user', + 'remover' => '👤 Remover: :seeder_login 👀', + ], +]; diff --git a/lang/vi/events/github/star.php b/lang/vi/events/github/star.php new file mode 100644 index 0000000..695f574 --- /dev/null +++ b/lang/vi/events/github/star.php @@ -0,0 +1,13 @@ + [ + 'title' => '🎉 New Star 🌟 from 🦑:user', + 'seeder' => '👤 Starer: :seeder_login 👀', + ], + + 'deleted' => [ + 'title' => '🚫 Star 🌟 Removed from 🦑:user', + 'remover' => '👤 Remover: :seeder_login 👀', + ], +]; diff --git a/resources/views/events/github/meta/deleted.blade.php b/resources/views/events/github/meta/deleted.blade.php index 3ae9406..7aeb253 100644 --- a/resources/views/events/github/meta/deleted.blade.php +++ b/resources/views/events/github/meta/deleted.blade.php @@ -8,11 +8,11 @@ {!! __('tg-notifier::events/github/meta.delete.title') !!} @if(isset($payload->organization)) - {!! __('tg-notifier::events/github/meta.delete.organization', ['organization' => $payload->organization->login]) !!} +{!! __('tg-notifier::events/github/meta.delete.organization', ['organization' => $payload->organization->login]) !!} @endif @if(isset($payload->repository)) - {!! __('tg-notifier::events/github/meta.delete.full_name', ['full_name' => $payload->repository->full_name]) !!} +{!! __('tg-notifier::events/github/meta.delete.full_name', ['full_name' => $payload->repository->full_name]) !!} @endif @if(isset($payload->sender)) - {!! __('tg-notifier::events/github/meta.delete.sender', ['sender' => $payload->sender->login]) !!} +{!! __('tg-notifier::events/github/meta.delete.sender', ['sender' => $payload->sender->login]) !!} @endif diff --git a/resources/views/events/github/star/created.blade.php b/resources/views/events/github/star/created.blade.php new file mode 100644 index 0000000..5c9f6b2 --- /dev/null +++ b/resources/views/events/github/star/created.blade.php @@ -0,0 +1,12 @@ + + +{!! __('tg-notifier::events/github/star.created.title', [ + 'user' => "{$payload->repository->full_name}" + ] + ) !!} + +{!! __('tg-notifier::events/github/star.created.seeder', ['sender_login' => $payload->sender->login]) !!} diff --git a/resources/views/events/github/star/deleted.blade.php b/resources/views/events/github/star/deleted.blade.php new file mode 100644 index 0000000..ac016f9 --- /dev/null +++ b/resources/views/events/github/star/deleted.blade.php @@ -0,0 +1,12 @@ + + +{!! __('tg-notifier::events/github/star.deleted.title', [ + 'user' => "{$payload->repository->full_name}" + ] + ) !!} + +{!! __('tg-notifier::events/github/star.deleted.remover', ['sender_login' => $payload->sender->login]) !!}