Skip to content

Commit 875d886

Browse files
committed
Add team event: add deleted action
1 parent 8266204 commit 875d886

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

lang/en/events/github/team.php

+6
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@
77
'sender' => 'Sender',
88
'team' => 'Team',
99
],
10+
'deleted' => [
11+
'title' => 'Team deleted successfully',
12+
'organization' => 'Organization',
13+
'sender' => 'Sender',
14+
'team' => 'Team',
15+
],
1016
];

resources/views/events/github/team/created.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
👤 {!! __('tg-notifier::events/github/team.created.sender') !!}: <b>{{ $payload->sender->login }}</b>
1616
@endif
1717
@if(isset($payload->team))
18-
👥 {!! __('tg-notifier::events/github/team.created.team') !!}: 🦑<a href='{{ $payload->team->html_url }}'><b>{{ $payload->team->name }}</b></a>
18+
👥 {!! __('tg-notifier::events/github/team.created.team') !!}: <a href='{{ $payload->team->html_url }}'><b>{{ $payload->team->name }}</b></a>
1919
@endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
/**
4+
* @var $payload object
5+
*/
6+
7+
?>
8+
9+
⚡ <b>{!! __('tg-notifier::events/github/team.deleted.title') !!}</b> 🎊
10+
11+
@if(isset($payload->organization))
12+
🏢 {!! __('tg-notifier::events/github/team.deleted.organization') !!}: <b>{{ $payload->organization->login }}</b>
13+
@endif
14+
@if(isset($payload->sender))
15+
👤 {!! __('tg-notifier::events/github/team.deleted.sender') !!}: <b>{{ $payload->sender->login }}</b>
16+
@endif
17+
@if(isset($payload->team))
18+
👥 {!! __('tg-notifier::events/github/team.deleted.team') !!}: <b>{{ $payload->team->name }}</b>
19+
@endif

0 commit comments

Comments
 (0)