Skip to content

Commit

Permalink
Merge pull request #61 from avaelo/delete-event
Browse files Browse the repository at this point in the history
create messages for delete event
  • Loading branch information
tanhongit authored Feb 8, 2024
2 parents ab46253 + 91d2512 commit ad6b43e
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lang/de/events/github/meta.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

return [
'delete' => [
'title' => '🗑 <b>Webhook gelöscht</b>',
'organization' => '🏢 Organisation: <b>:organization</b>',
'full_name' => '📦 Repository: 🦑<b>:full_name</b>',
'sender' => '👤 Sender (der das Ereignis ausgelöst hat): <b>:sender</b>',
],
];
10 changes: 10 additions & 0 deletions lang/en/events/github/meta.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

return [
'delete' => [
'title' => '🗑 <b>Webhook Deleted</b>',
'organization' => '🏢 Organization: <b>:organization</b>',
'full_name' => '📦 Repository: 🦑<b>:full_name</b>',
'sender' => '👤 Sender (triggered the event): <b>:sender</b>',
],
];
10 changes: 10 additions & 0 deletions lang/ja/events/github/meta.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

return [
'delete' => [
'title' => '🗑 <b>Webhook 削除</b>',
'organization' => '🏢 組織: <b>:organization</b>',
'full_name' => '📦 リポジトリ: 🦑<b>:full_name</b>',
'sender' => '👤 送信者(イベントのトリガー): <b>:sender</b>',
],
];
10 changes: 10 additions & 0 deletions lang/vi/events/github/meta.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

return [
'delete' => [
'title' => '🗑 <b>Webhook đã được xóa</b>',
'organization' => '🏢 Tổ chức: <b>:organization</b>',
'full_name' => '📦 Kho lưu trữ: 🦑<b>:full_name</b>',
'sender' => '👤 Người thực hiện sự kiện: <b>:sender</b>',
],
];
18 changes: 18 additions & 0 deletions resources/views/events/github/meta/deleted.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
/**
* @var $payload object
*/
?>

{!! __('tg-notifier::events/github/meta.delete.title') !!}

@if(isset($payload->organization))
{!! __('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]) !!}
@endif
@if(isset($payload->sender))
{!! __('tg-notifier::events/github/meta.delete.sender', ['sender' => $payload->sender->login]) !!}
@endif

0 comments on commit ad6b43e

Please sign in to comment.