Skip to content

Commit

Permalink
fix: update view template for pull request event
Browse files Browse the repository at this point in the history
  • Loading branch information
Phú Tống committed May 10, 2024
1 parent 5555385 commit 632dedb
Show file tree
Hide file tree
Showing 14 changed files with 65 additions and 65 deletions.
24 changes: 12 additions & 12 deletions lang/de/events/github/pull_request.php
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
<?php

return [
'review' => '👥 Reviewers: ',
'review' => 'Reviewers: ',
'assigned' => [
'title' => '‍👷‍♂️🛠️ <b>Assigned Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Assigned Pull Request</b> - :repo by :user',
'body' => ':name has been assigned in the pull request <b>:pullRequest</b>',
],
'closed' => [
'title' => ':title - 🦑:repo by :user',
'title_merged' => '<b>Pull Request Merged</b>',
'title_closed' => '🚫 <b>Pull Request Closed</b>',
'title' => ':title - :repo by :user',
'title_merged' => '<b>Pull Request Merged</b>',
'title_closed' => '<b>Pull Request Closed</b>',
],
'labeled' => [
'title' => '‍👷‍♂️🛠️ <b>Labeled Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Labeled Pull Request</b> - :repo by :user',
],
'locked' => [
'title' => '‍👷‍♂️🛠️ <b>Locked Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Locked Pull Request</b> - :repo by :user',
],
'opened' => [
'title' => '👷‍♂️🛠️ <b>New Pull Request</b> - 🦑:repo by :user',
'title' => '<b>New Pull Request</b> - :repo by :user',
],
'reopened' => [
'title' => '👷‍♂️🛠️ <b>Reopened Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Reopened Pull Request</b> - :repo by :user',
],
'unassigned' => [
'title' => '‍👷‍♂️🛠️ <b>Unassigned Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Unassigned Pull Request</b> - :repo by :user',
'body' => ':name has been unassigned in the pull request <b>:pullRequest</b>',
],
'unlabeled' => [
'title' => '‍👷‍♂️🛠️ <b>Unlabeled Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Unlabeled Pull Request</b> - :repo by :user',
],
'unlocked' => [
'title' => '‍👷‍♂️🛠️ <b>Unlocked Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Unlocked Pull Request</b> - :repo by :user',
],
];
22 changes: 11 additions & 11 deletions lang/en/events/github/pull_request.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,34 @@
return [
'review' => '👥 Reviewers: ',
'assigned' => [
'title' => '‍👷‍♂️🛠️ <b>Assigned Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Assigned Pull Request</b> - :repo by :user',
'body' => ':name has been assigned in the pull request <b>:pullRequest</b>',
],
'closed' => [
'title' => ':title - 🦑:repo by :user',
'title_merged' => '<b>Pull Request Merged</b>',
'title_closed' => '🚫 <b>Pull Request Closed</b>',
'title' => ':title - :repo by :user',
'title_merged' => '<b>Pull Request Merged</b>',
'title_closed' => '<b>Pull Request Closed</b>',
],
'labeled' => [
'title' => '‍👷‍♂️🛠️ <b>Labeled Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Labeled Pull Request</b> - :repo by :user',
],
'locked' => [
'title' => '‍👷‍♂️🛠️ <b>Locked Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Locked Pull Request</b> - :repo by :user',
],
'opened' => [
'title' => '👷‍♂️🛠️ <b>New Pull Request</b> - 🦑:repo by :user',
'title' => '<b>New Pull Request</b> - :repo by :user',
],
'reopened' => [
'title' => '👷‍♂️🛠️ <b>Reopened Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Reopened Pull Request</b> - :repo by :user',
],
'unassigned' => [
'title' => '‍👷‍♂️🛠️ <b>Unassigned Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Unassigned Pull Request</b> - :repo by :user',
'body' => ':name has been unassigned in the pull request <b>:pullRequest</b>',
],
'unlabeled' => [
'title' => '‍👷‍♂️🛠️ <b>Unlabeled Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Unlabeled Pull Request</b> - :repo by :user',
],
'unlocked' => [
'title' => '‍👷‍♂️🛠️ <b>Unlocked Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Unlocked Pull Request</b> - :repo by :user',
],
];
22 changes: 11 additions & 11 deletions lang/ja/events/github/pull_request.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,34 @@
return [
'review' => '👥 Reviewers: ',
'assigned' => [
'title' => '‍👷‍♂️🛠️ <b>Assigned Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Assigned Pull Request</b> - :repo by :user',
'body' => ':name has been assigned in the pull request <b>:pullRequest</b>',
],
'closed' => [
'title' => ':title - 🦑:repo by :user',
'title_merged' => '<b>Pull Request Merged</b>',
'title_closed' => '🚫 <b>Pull Request Closed</b>',
'title' => ':title - :repo by :user',
'title_merged' => '<b>Pull Request Merged</b>',
'title_closed' => '<b>Pull Request Closed</b>',
],
'labeled' => [
'title' => '‍👷‍♂️🛠️ <b>Labeled Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Labeled Pull Request</b> - :repo by :user',
],
'locked' => [
'title' => '‍👷‍♂️🛠️ <b>Locked Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Locked Pull Request</b> - :repo by :user',
],
'opened' => [
'title' => '👷‍♂️🛠️ <b>New Pull Request</b> - 🦑:repo by :user',
'title' => '<b>New Pull Request</b> - :repo by :user',
],
'reopened' => [
'title' => '👷‍♂️🛠️ <b>Reopened Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Reopened Pull Request</b> - :repo by :user',
],
'unassigned' => [
'title' => '‍👷‍♂️🛠️ <b>Unassigned Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Unassigned Pull Request</b> - :repo by :user',
'body' => ':name has been unassigned in the pull request <b>:pullRequest</b>',
],
'unlabeled' => [
'title' => '‍👷‍♂️🛠️ <b>Unlabeled Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Unlabeled Pull Request</b> - :repo by :user',
],
'unlocked' => [
'title' => '‍👷‍♂️🛠️ <b>Unlocked Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Unlocked Pull Request</b> - :repo by :user',
],
];
22 changes: 11 additions & 11 deletions lang/vi/events/github/pull_request.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,34 @@
return [
'review' => '👥 Reviewers: ',
'assigned' => [
'title' => '‍👷‍♂️🛠️ <b>Assigned Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Assigned Pull Request</b> - :repo by :user',
'body' => ':name has been assigned in the pull request <b>:pullRequest</b>',
],
'closed' => [
'title' => ':title - 🦑:repo by :user',
'title_merged' => '<b>Pull Request Merged</b>',
'title_closed' => '🚫 <b>Pull Request Closed</b>',
'title' => ':title - :repo by :user',
'title_merged' => '<b>Pull Request Merged</b>',
'title_closed' => '<b>Pull Request Closed</b>',
],
'labeled' => [
'title' => '‍👷‍♂️🛠️ <b>Labeled Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Labeled Pull Request</b> - :repo by :user',
],
'locked' => [
'title' => '‍👷‍♂️🛠️ <b>Locked Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Locked Pull Request</b> - :repo by :user',
],
'opened' => [
'title' => '👷‍♂️🛠️ <b>New Pull Request</b> - 🦑:repo by :user',
'title' => '<b>New Pull Request</b> - :repo by :user',
],
'reopened' => [
'title' => '👷‍♂️🛠️ <b>Reopened Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Reopened Pull Request</b> - :repo by :user',
],
'unassigned' => [
'title' => '‍👷‍♂️🛠️ <b>Unassigned Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Unassigned Pull Request</b> - :repo by :user',
'body' => ':name has been unassigned in the pull request <b>:pullRequest</b>',
],
'unlabeled' => [
'title' => '‍👷‍♂️🛠️ <b>Unlabeled Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Unlabeled Pull Request</b> - :repo by :user',
],
'unlocked' => [
'title' => '‍👷‍♂️🛠️ <b>Unlocked Pull Request</b> - 🦑:repo by :user',
'title' => '<b>Unlocked Pull Request</b> - :repo by :user',
],
];
4 changes: 2 additions & 2 deletions resources/views/events/github/pull_request/assigned.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
$pull_request = $payload->pull_request;
?>

{!! __('tg-notifier::events/github/pull_request.assigned.title', [
'repo' => "<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
‍👷‍♂️🛠️ {!! __('tg-notifier::events/github/pull_request.assigned.title', [
'repo' => "🦑<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
'user' => "<a href='{$payload->sender->html_url}'>@{$payload->sender->login}</a>"
]
) !!}
Expand Down
6 changes: 3 additions & 3 deletions resources/views/events/github/pull_request/closed.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
$pull_request = $payload->pull_request;
$message = __('tg-notifier::events/github/pull_request.closed.title_merged');
$message = ''.__('tg-notifier::events/github/pull_request.closed.title_merged');
if (!isset($payload->pull_request->merged) || $payload->pull_request->merged !== true) {
$message = __('tg-notifier::events/github/pull_request.closed.title_closed');
$message = '🚫 '.__('tg-notifier::events/github/pull_request.closed.title_closed');
}
?>

{!! __('tg-notifier::events/github/pull_request.closed.title', [
'title' => $message,
'repo' => "<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
'repo' => "🦑<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
'user' => "<a href='{$payload->sender->html_url}'>@{$payload->sender->login}</a>"
]) !!}

Expand Down
4 changes: 2 additions & 2 deletions resources/views/events/github/pull_request/labeled.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
$description = strlen($payload->label->description) > 50 ? $payload->label->description : substr($payload->label->description, 0, 50).'...';
?>

{!! __('tg-notifier::events/github/pull_request.labeled.title', [
'repo' => "<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
‍👷‍♂️🛠️ {!! __('tg-notifier::events/github/pull_request.labeled.title', [
'repo' => "🦑<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
'user' => "<a href='{$payload->sender->html_url}'>@{$payload->sender->login}</a>"
]
) !!}
Expand Down
4 changes: 2 additions & 2 deletions resources/views/events/github/pull_request/locked.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
$pull_request = $payload->pull_request;
?>

{!! __('tg-notifier::events/github/pull_request.locked.title', [
'repo' => "<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
‍👷‍♂️🛠️ {!! __('tg-notifier::events/github/pull_request.locked.title', [
'repo' => "🦑<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
'user' => "<a href='{$payload->sender->html_url}'>@{$payload->sender->login}</a>"
]
) !!}
Expand Down
4 changes: 2 additions & 2 deletions resources/views/events/github/pull_request/opened.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
$pull_request = $payload->pull_request;
?>

{!! __('tg-notifier::events/github/pull_request.opened.title', [
'repo' => "<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
👷‍♂️🛠️ {!! __('tg-notifier::events/github/pull_request.opened.title', [
'repo' => "🦑<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
'user' => "<a href='{$payload->sender->html_url}'>@{$payload->sender->login}</a>"
]
) !!}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$reviewers[] = "<b>{$reviewer->login}</b>";
}
$textReviewers .= __('tg-notifier::events/github/pull_request.review') . implode(', ', $reviewers);
$textReviewers .= '👥 '.__('tg-notifier::events/github/pull_request.review') . implode(', ', $reviewers);
}
?>
{!! $textReviewers !!}
4 changes: 2 additions & 2 deletions resources/views/events/github/pull_request/reopened.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
$pull_request = $payload->pull_request;
?>

{!! __('tg-notifier::events/github/pull_request.reopened.title', [
'repo' => "<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
👷‍♂️🛠️ {!! __('tg-notifier::events/github/pull_request.reopened.title', [
'repo' => "🦑<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
'user' => "<a href='{$payload->sender->html_url}'>@{$payload->sender->login}</a>"
]
) !!}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
$pull_request = $payload->pull_request;
?>

{!! __('tg-notifier::events/github/pull_request.unassigned.title', [
'repo' => "<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
‍👷‍♂️🛠️ {!! __('tg-notifier::events/github/pull_request.unassigned.title', [
'repo' => "🦑<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
'user' => "<a href='{$payload->sender->html_url}'>@{$payload->sender->login}</a>"
]
) !!}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
$pull_request = $payload->pull_request;
?>

{!! __('tg-notifier::events/github/pull_request.unlabeled.title', [
'repo' => "<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
‍👷‍♂️🛠️ {!! __('tg-notifier::events/github/pull_request.unlabeled.title', [
'repo' => "🦑<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
'user' => "<a href='{$payload->sender->html_url}'>@{$payload->sender->login}</a>"
]
) !!}
Expand Down
4 changes: 2 additions & 2 deletions resources/views/events/github/pull_request/unlocked.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
$pull_request = $payload->pull_request;
?>

{!! __('tg-notifier::events/github/pull_request.unlocked.title', [
'repo' => "<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
‍👷‍♂️🛠️ {!! __('tg-notifier::events/github/pull_request.unlocked.title', [
'repo' => "🦑<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>",
'user' => "<a href='{$payload->sender->html_url}'>@{$payload->sender->login}</a>"
]
) !!}
Expand Down

0 comments on commit 632dedb

Please sign in to comment.