diff --git a/lang/de/events/github/ping.php b/lang/de/events/github/ping.php index b0397ef..394386a 100644 --- a/lang/de/events/github/ping.php +++ b/lang/de/events/github/ping.php @@ -1,10 +1,8 @@ [ - 'title' => 'Connection Successful', - 'organization' => 'Organization', - 'full_name' => 'Repository', - 'sender' => 'Sender (triggered the event)', - ], + 'title' => 'Connection Successful', + 'organization' => 'Organization', + 'full_name' => 'Repository', + 'sender' => 'Sender (triggered the event)', ]; diff --git a/lang/de/events/github/team_add.php b/lang/de/events/github/team_add.php new file mode 100644 index 0000000..d28b5d5 --- /dev/null +++ b/lang/de/events/github/team_add.php @@ -0,0 +1,8 @@ + 'Team Added successfully', + 'organization' => 'Organization', + 'full_name' => 'Repository', + 'team' => 'Team', +]; diff --git a/lang/en/events/github/ping.php b/lang/en/events/github/ping.php index b0397ef..394386a 100644 --- a/lang/en/events/github/ping.php +++ b/lang/en/events/github/ping.php @@ -1,10 +1,8 @@ [ - 'title' => 'Connection Successful', - 'organization' => 'Organization', - 'full_name' => 'Repository', - 'sender' => 'Sender (triggered the event)', - ], + 'title' => 'Connection Successful', + 'organization' => 'Organization', + 'full_name' => 'Repository', + 'sender' => 'Sender (triggered the event)', ]; diff --git a/lang/en/events/github/team_add.php b/lang/en/events/github/team_add.php new file mode 100644 index 0000000..d28b5d5 --- /dev/null +++ b/lang/en/events/github/team_add.php @@ -0,0 +1,8 @@ + 'Team Added successfully', + 'organization' => 'Organization', + 'full_name' => 'Repository', + 'team' => 'Team', +]; diff --git a/lang/ja/events/github/ping.php b/lang/ja/events/github/ping.php index b0397ef..394386a 100644 --- a/lang/ja/events/github/ping.php +++ b/lang/ja/events/github/ping.php @@ -1,10 +1,8 @@ [ - 'title' => 'Connection Successful', - 'organization' => 'Organization', - 'full_name' => 'Repository', - 'sender' => 'Sender (triggered the event)', - ], + 'title' => 'Connection Successful', + 'organization' => 'Organization', + 'full_name' => 'Repository', + 'sender' => 'Sender (triggered the event)', ]; diff --git a/lang/ja/events/github/team_add.php b/lang/ja/events/github/team_add.php new file mode 100644 index 0000000..d28b5d5 --- /dev/null +++ b/lang/ja/events/github/team_add.php @@ -0,0 +1,8 @@ + 'Team Added successfully', + 'organization' => 'Organization', + 'full_name' => 'Repository', + 'team' => 'Team', +]; diff --git a/lang/vi/events/github/ping.php b/lang/vi/events/github/ping.php index b0397ef..394386a 100644 --- a/lang/vi/events/github/ping.php +++ b/lang/vi/events/github/ping.php @@ -1,10 +1,8 @@ [ - 'title' => 'Connection Successful', - 'organization' => 'Organization', - 'full_name' => 'Repository', - 'sender' => 'Sender (triggered the event)', - ], + 'title' => 'Connection Successful', + 'organization' => 'Organization', + 'full_name' => 'Repository', + 'sender' => 'Sender (triggered the event)', ]; diff --git a/lang/vi/events/github/team_add.php b/lang/vi/events/github/team_add.php new file mode 100644 index 0000000..d28b5d5 --- /dev/null +++ b/lang/vi/events/github/team_add.php @@ -0,0 +1,8 @@ + 'Team Added successfully', + 'organization' => 'Organization', + 'full_name' => 'Repository', + 'team' => 'Team', +]; diff --git a/resources/views/events/github/ping/default.blade.php b/resources/views/events/github/ping/default.blade.php index 05ddd3c..f173a03 100644 --- a/resources/views/events/github/ping/default.blade.php +++ b/resources/views/events/github/ping/default.blade.php @@ -1,18 +1,19 @@ -⚡ {!! __('tg-notifier::events/github/ping.default.title') !!} 🎊 +⚡ {!! __('tg-notifier::events/github/ping.title') !!} 🎊 @if(isset($payload->organization)) -🏢 {!! __('tg-notifier::events/github/ping.default.organization') !!}: {{ $payload->organization->login }} +🏢 {!! __('tg-notifier::events/github/ping.organization') !!}: {{ $payload->organization->login }} @endif @if(isset($payload->repository)) -📦 {!! __('tg-notifier::events/github/ping.default.full_name') !!}: 🦑{{ $payload->repository->full_name }} +📦 {!! __('tg-notifier::events/github/ping.full_name') !!}: 🦑{{ $payload->repository->full_name }} @endif @if(isset($payload->sender)) -👤 {!! __('tg-notifier::events/github/ping.default.sender') !!}: {{ $payload->sender->login }} -@endif +👤 {!! __('tg-notifier::events/github/ping.sender') !!}: {{ $payload->sender->login }} +@endif \ No newline at end of file diff --git a/resources/views/events/github/team_add/default.blade.php b/resources/views/events/github/team_add/default.blade.php new file mode 100644 index 0000000..763516f --- /dev/null +++ b/resources/views/events/github/team_add/default.blade.php @@ -0,0 +1,19 @@ + + +⚡ {!! __('tg-notifier::events/github/team_add.title') !!} 🎊 + +@if(isset($payload->organization)) +🏢 {!! __('tg-notifier::events/github/team_add.organization') !!}: {{ $payload->organization->login }} +@endif +@if(isset($payload->repository)) +📦 {!! __('tg-notifier::events/github/team_add.full_name') !!}: 🦑{{ $payload->repository->full_name }} +@endif +@if(isset($payload->team)) +👥 {!! __('tg-notifier::events/github/team_add.team') !!}: {{ $payload->team->name }} +@endif \ No newline at end of file