Skip to content

Commit

Permalink
create star action template
Browse files Browse the repository at this point in the history
  • Loading branch information
kenautomus committed Feb 9, 2024
1 parent 32475bc commit 419a41a
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 4 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>:seeder_login</b> 👀',
],

'deleted' => [
'title' => '🚫 <b>Star 🌟 Removed</b> from 🦑:user',
'remover' => '👤 Remover: <b>:seeder_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>:seeder_login</b> 👀',
],

'deleted' => [
'title' => '🚫 <b>Star 🌟 Removed</b> from 🦑:user',
'remover' => '👤 Remover: <b>:seeder_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>:seeder_login</b> 👀',
],

'deleted' => [
'title' => '🚫 <b>Star 🌟 Removed</b> from 🦑:user',
'remover' => '👤 Remover: <b>:seeder_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>New Star 🌟</b> from 🦑:user',
'seeder' => '👤 Starer: <b>:seeder_login</b> 👀',
],

'deleted' => [
'title' => '🚫 <b>Star 🌟 Removed</b> from 🦑:user',
'remover' => '👤 Remover: <b>:seeder_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 419a41a

Please sign in to comment.