Skip to content

Commit

Permalink
Merge pull request #62 from kenautomus/star
Browse files Browse the repository at this point in the history
create star action template
  • Loading branch information
tanhongit authored Feb 9, 2024
2 parents 428ac8b + 771f2c1 commit 5639968
Show file tree
Hide file tree
Showing 11 changed files with 86 additions and 10 deletions.
13 changes: 13 additions & 0 deletions lang/de/events/github/star.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

return [
'created' => [
'title' => '🎉 <b>New Star 🌟</b> from 🦑:user',
'seeder' => '👤 Starer: <b>:sender_login</b> 👀',
],

'deleted' => [
'title' => '🚫 <b>Star 🌟 Removed</b> from 🦑:user',
'remover' => '👤 Remover: <b>:sender_login</b> 👀',
],
];
4 changes: 2 additions & 2 deletions lang/de/events/github/watch.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'started' => [
'title' => '🎉 <b>New Started</b> form 🦑:user',
'watcher' => '👤 Watcher: <b>:sender_login</b> 👀',
'title' => '🎉 (betrachten) <b>Neuer Stern 🌟</b> von 🦑:user',
'watcher' => '👤 Betrachter: <b>:sender_login</b> 👀',
],
];
13 changes: 13 additions & 0 deletions lang/en/events/github/star.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

return [
'created' => [
'title' => '🎉 <b>New Star 🌟</b> from 🦑:user',
'seeder' => '👤 Starer: <b>:sender_login</b> 👀',
],

'deleted' => [
'title' => '🚫 <b>Star 🌟 Removed</b> from 🦑:user',
'remover' => '👤 Remover: <b>:sender_login</b> 👀',
],
];
2 changes: 1 addition & 1 deletion lang/en/events/github/watch.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'started' => [
'title' => '🎉 <b>New Started</b> form 🦑:user',
'title' => '🎉 (Watch) <b>New Star 🌟</b> from 🦑:user',
'watcher' => '👤 Watcher: <b>:sender_login</b> 👀',
],
];
13 changes: 13 additions & 0 deletions lang/ja/events/github/star.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

return [
'created' => [
'title' => '🎉 <b>New Star 🌟</b> from 🦑:user',
'seeder' => '👤 Starer: <b>:sender_login</b> 👀',
],

'deleted' => [
'title' => '🚫 <b>Star 🌟 Removed</b> from 🦑:user',
'remover' => '👤 Remover: <b>:sender_login</b> 👀',
],
];
4 changes: 2 additions & 2 deletions lang/ja/events/github/watch.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'started' => [
'title' => '🎉 <b>New Started</b> form 🦑:user',
'watcher' => '👤 Watcher: <b>:sender_login</b> 👀',
'title' => '🎉 (時計) <b>新しいスター 🌟</b> from 🦑:user',
'watcher' => '👤 ウォッチャー: <b>:sender_login</b> 👀',
],
];
13 changes: 13 additions & 0 deletions lang/vi/events/github/star.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

return [
'created' => [
'title' => '🎉 <b>Nhận dấu sao mới 🌟</b> từ 🦑:user',
'seeder' => '👤 Người gắn dấu sao: <b>:sender_login</b> 👀',
],

'deleted' => [
'title' => '🚫 <b>Dấu sao đã bị hủy <b> từ 🦑:user',
'remover' => '👤 Người hủy bỏ: <b>:sender_login</b> 👀',
],
];
4 changes: 2 additions & 2 deletions lang/vi/events/github/watch.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'started' => [
'title' => '🎉 <b>New Started</b> form 🦑:user',
'watcher' => '👤 Watcher: <b>:sender_login</b> 👀',
'title' => '🎉 <b>(Watch) Dấu sao mới 🌟</b> từ 🦑:user',
'watcher' => '👤 Người theo dõi: <b>:sender_login</b> 👀',
],
];
6 changes: 3 additions & 3 deletions resources/views/events/github/meta/deleted.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
{!! __('tg-notifier::events/github/meta.delete.title') !!}

@if(isset($payload->organization))
{!! __('tg-notifier::events/github/meta.delete.organization', ['organization' => $payload->organization->login]) !!}
{!! __('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]) !!}
{!! __('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]) !!}
{!! __('tg-notifier::events/github/meta.delete.sender', ['sender' => $payload->sender->login]) !!}
@endif
12 changes: 12 additions & 0 deletions resources/views/events/github/star/created.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
/**
* @var $payload object
*/
?>

{!! __('tg-notifier::events/github/star.created.title', [
'user' => "<a href='{$payload->repository->html_url}'>{$payload->repository->full_name}</a>"
]
) !!}

{!! __('tg-notifier::events/github/star.created.seeder', ['sender_login' => $payload->sender->login]) !!}
12 changes: 12 additions & 0 deletions resources/views/events/github/star/deleted.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
/**
* @var $payload object
*/
?>

{!! __('tg-notifier::events/github/star.deleted.title', [
'user' => "<a href='{$payload->repository->html_url}'>{$payload->repository->full_name}</a>"
]
) !!}

{!! __('tg-notifier::events/github/star.deleted.remover', ['sender_login' => $payload->sender->login]) !!}

0 comments on commit 5639968

Please sign in to comment.