Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create star action template #62

Merged
merged 5 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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> 👀',
],
];
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',
kenautomus marked this conversation as resolved.
Show resolved Hide resolved
'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> 👀',
],
];
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>:sender_login</b> 👀',
],

'deleted' => [
'title' => '🚫 <b>Star 🌟 Removed</b> from 🦑:user',
'remover' => '👤 Remover: <b>:sender_login</b> 👀',
kenautomus marked this conversation as resolved.
Show resolved Hide resolved
],
];
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]) !!}