Skip to content

Commit 8266204

Browse files
committed
Add team event: add created action
1 parent 852d69e commit 8266204

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

lang/en/events/github/team.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
return [
4+
'created' => [
5+
'title' => 'Team created successfully',
6+
'organization' => 'Organization',
7+
'sender' => 'Sender',
8+
'team' => 'Team',
9+
],
10+
];
Lines changed: 19 additions & 0 deletions
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.created.title') !!}</b> 🎊
10+
11+
@if(isset($payload->organization))
12+
🏢 {!! __('tg-notifier::events/github/team.created.organization') !!}: <b>{{ $payload->organization->login }}</b>
13+
@endif
14+
@if(isset($payload->sender))
15+
👤 {!! __('tg-notifier::events/github/team.created.sender') !!}: <b>{{ $payload->sender->login }}</b>
16+
@endif
17+
@if(isset($payload->team))
18+
👥 {!! __('tg-notifier::events/github/team.created.team') !!}: 🦑<a href='{{ $payload->team->html_url }}'><b>{{ $payload->team->name }}</b></a>
19+
@endif

0 commit comments

Comments
 (0)