Skip to content

Commit

Permalink
Merge pull request #75 from cslant/feature/team
Browse files Browse the repository at this point in the history
feature/team
  • Loading branch information
tanhongit authored May 20, 2024
2 parents fef8aef + ecea7fe commit 28162c9
Show file tree
Hide file tree
Showing 9 changed files with 250 additions and 0 deletions.
37 changes: 37 additions & 0 deletions lang/de/events/github/team.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

return [
'added_to_repository' => [
'title' => 'Team added to repository successfully',
'organization' => 'Organization',
'full_name' => 'Repository',
'role_name' => 'Role',
'sender' => 'Sender',
'team' => 'Team',
],
'created' => [
'title' => 'Team created successfully',
'organization' => 'Organization',
'sender' => 'Sender',
'team' => 'Team',
],
'deleted' => [
'title' => 'Team deleted successfully',
'organization' => 'Organization',
'sender' => 'Sender',
'team' => 'Team',
],
'edited' => [
'title' => 'Team edited successfully',
'organization' => 'Organization',
'sender' => 'Sender',
'team' => 'Team',
],
'removed_from_repository' => [
'title' => 'Team removed from repository successfully',
'organization' => 'Organization',
'full_name' => 'Repository',
'sender' => 'Sender',
'team' => 'Team',
],
];
37 changes: 37 additions & 0 deletions lang/en/events/github/team.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

return [
'added_to_repository' => [
'title' => 'Team added to repository successfully',
'organization' => 'Organization',
'full_name' => 'Repository',
'role_name' => 'Role',
'sender' => 'Sender',
'team' => 'Team',
],
'created' => [
'title' => 'Team created successfully',
'organization' => 'Organization',
'sender' => 'Sender',
'team' => 'Team',
],
'deleted' => [
'title' => 'Team deleted successfully',
'organization' => 'Organization',
'sender' => 'Sender',
'team' => 'Team',
],
'edited' => [
'title' => 'Team edited successfully',
'organization' => 'Organization',
'sender' => 'Sender',
'team' => 'Team',
],
'removed_from_repository' => [
'title' => 'Team removed from repository successfully',
'organization' => 'Organization',
'full_name' => 'Repository',
'sender' => 'Sender',
'team' => 'Team',
],
];
37 changes: 37 additions & 0 deletions lang/ja/events/github/team.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

return [
'added_to_repository' => [
'title' => 'Team added to repository successfully',
'organization' => 'Organization',
'full_name' => 'Repository',
'role_name' => 'Role',
'sender' => 'Sender',
'team' => 'Team',
],
'created' => [
'title' => 'Team created successfully',
'organization' => 'Organization',
'sender' => 'Sender',
'team' => 'Team',
],
'deleted' => [
'title' => 'Team deleted successfully',
'organization' => 'Organization',
'sender' => 'Sender',
'team' => 'Team',
],
'edited' => [
'title' => 'Team edited successfully',
'organization' => 'Organization',
'sender' => 'Sender',
'team' => 'Team',
],
'removed_from_repository' => [
'title' => 'Team removed from repository successfully',
'organization' => 'Organization',
'full_name' => 'Repository',
'sender' => 'Sender',
'team' => 'Team',
],
];
37 changes: 37 additions & 0 deletions lang/vi/events/github/team.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

return [
'added_to_repository' => [
'title' => 'Team added to repository successfully',
'organization' => 'Organization',
'full_name' => 'Repository',
'role_name' => 'Role',
'sender' => 'Sender',
'team' => 'Team',
],
'created' => [
'title' => 'Team created successfully',
'organization' => 'Organization',
'sender' => 'Sender',
'team' => 'Team',
],
'deleted' => [
'title' => 'Team deleted successfully',
'organization' => 'Organization',
'sender' => 'Sender',
'team' => 'Team',
],
'edited' => [
'title' => 'Team edited successfully',
'organization' => 'Organization',
'sender' => 'Sender',
'team' => 'Team',
],
'removed_from_repository' => [
'title' => 'Team removed from repository successfully',
'organization' => 'Organization',
'full_name' => 'Repository',
'sender' => 'Sender',
'team' => 'Team',
],
];
23 changes: 23 additions & 0 deletions resources/views/events/github/team/added_to_repository.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* @var $payload object
*/
?>

⚡ <b>{!! __('tg-notifier::events/github/team.added_to_repository.title') !!}</b> 🎊

@if(isset($payload->organization))
🏢 {!! __('tg-notifier::events/github/team.added_to_repository.organization') !!}: <b>{{ $payload->organization->login }}</b>
@endif
@if(isset($payload->repository))
📦 {!! __('tg-notifier::events/github/team.added_to_repository.full_name') !!}: 🦑<a href='{{ $payload->team->html_url }}'><b>{{ $payload->repository->full_name }}</b></a>
📄 {!! __('tg-notifier::events/github/team.added_to_repository.role_name') !!}: <b>{{ $payload->repository->role_name }}</b>
@endif
@if(isset($payload->sender))
👤 {!! __('tg-notifier::events/github/team.added_to_repository.sender') !!}: <b>{{ $payload->sender->login }}</b>
@endif
@if(isset($payload->team))
👥 {!! __('tg-notifier::events/github/team.added_to_repository.team') !!}: <a href='{{ $payload->team->html_url }}'><b>{{ $payload->team->name }}</b></a>
@endif
19 changes: 19 additions & 0 deletions resources/views/events/github/team/created.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
/**
* @var $payload object
*/
?>

⚡ <b>{!! __('tg-notifier::events/github/team.created.title') !!}</b> 🎊

@if(isset($payload->organization))
🏢 {!! __('tg-notifier::events/github/team.created.organization') !!}: <b>{{ $payload->organization->login }}</b>
@endif
@if(isset($payload->sender))
👤 {!! __('tg-notifier::events/github/team.created.sender') !!}: <b>{{ $payload->sender->login }}</b>
@endif
@if(isset($payload->team))
👥 {!! __('tg-notifier::events/github/team.created.team') !!}: <a href='{{ $payload->team->html_url }}'><b>{{ $payload->team->name }}</b></a>
@endif
19 changes: 19 additions & 0 deletions resources/views/events/github/team/deleted.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
/**
* @var $payload object
*/
?>

🗑 <b>{!! __('tg-notifier::events/github/team.deleted.title') !!}</b> 🎊

@if(isset($payload->organization))
🏢 {!! __('tg-notifier::events/github/team.deleted.organization') !!}: <b>{{ $payload->organization->login }}</b>
@endif
@if(isset($payload->sender))
👤 {!! __('tg-notifier::events/github/team.deleted.sender') !!}: <b>{{ $payload->sender->login }}</b>
@endif
@if(isset($payload->team))
👥 {!! __('tg-notifier::events/github/team.deleted.team') !!}: <b>{{ $payload->team->name }}</b>
@endif
19 changes: 19 additions & 0 deletions resources/views/events/github/team/edited.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
/**
* @var $payload object
*/
?>

⚡ <b>{!! __('tg-notifier::events/github/team.edited.title') !!}</b> 🎊

@if(isset($payload->organization))
🏢 {!! __('tg-notifier::events/github/team.edited.organization') !!}: <b>{{ $payload->organization->login }}</b>
@endif
@if(isset($payload->sender))
👤 {!! __('tg-notifier::events/github/team.edited.sender') !!}: <b>{{ $payload->sender->login }}</b>
@endif
@if(isset($payload->team))
👥 {!! __('tg-notifier::events/github/team.edited.team') !!}: <a href='{{ $payload->team->html_url }}'><b>{{ $payload->team->name }}</b></a>
@endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
/**
* @var $payload object
*/
?>

⚡ <b>{!! __('tg-notifier::events/github/team.removed_from_repository.title') !!}</b> 🎊

@if(isset($payload->organization))
🏢 {!! __('tg-notifier::events/github/team.removed_from_repository.organization') !!}: <b>{{ $payload->organization->login }}</b>
@endif
@if(isset($payload->repository))
📦 {!! __('tg-notifier::events/github/team.removed_from_repository.full_name') !!}: 🦑<a href='{{ $payload->team->html_url }}'><b>{{ $payload->repository->full_name }}</b></a>
@endif
@if(isset($payload->sender))
👤 {!! __('tg-notifier::events/github/team.removed_from_repository.sender') !!}: <b>{{ $payload->sender->login }}</b>
@endif
@if(isset($payload->team))
👥 {!! __('tg-notifier::events/github/team.removed_from_repository.team') !!}: <a href='{{ $payload->team->html_url }}'><b>{{ $payload->team->name }}</b></a>
@endif

0 comments on commit 28162c9

Please sign in to comment.