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

Update layout for workflow events, actions #68

Merged
merged 34 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
aeb303f
fix: update layout for workflow run actions
tanhongit May 4, 2024
e119809
fix: update layout for star actions
tanhongit May 4, 2024
c36cb4a
fix: update layout for star actions v2
tanhongit May 4, 2024
31004ea
fix: update translation and the view of the push event
tanhongit May 4, 2024
d0ea55c
fix: the view of the ping event
tanhongit May 4, 2024
240cc01
fix: the view of the meta delete event
tanhongit May 4, 2024
278bf7a
fix: the view of the ping and meta event
tanhongit May 5, 2024
ea1f6cc
fix: the view of the star event
tanhongit May 5, 2024
a66751a
fix: update the share views
tanhongit May 5, 2024
42c20ec
fix: update the issue events, actions
tanhongit May 5, 2024
ba0b403
fix: update translations & issue templates
tanhongit May 5, 2024
3e2a68c
fix: update view template for branch protection rule event
tanhongit May 5, 2024
2c8b27c
fix: update view template for issue comment event
tanhongit May 5, 2024
49e2a98
fix: update view template for PR review comment event
tanhongit May 5, 2024
f381462
fix: update the view template for the push event
tanhongit May 5, 2024
d2a96ac
fix: update view template for issue event
tanhongit May 5, 2024
7d38c47
fix: clean code and update some events
tanhongit May 5, 2024
43a4cf6
fix: update view template for deploy key event
tanhongit May 5, 2024
9b948ba
Update view template for the branch_protection_rule actions
tanhongit May 7, 2024
7f913a2
fix: update view template for deploy key event
hokhacminhtri May 5, 2024
1484781
Update view template for the branch_protection_rule actions
tanhongit May 7, 2024
5555385
Merge branch 'refs/heads/update-event-template-mixed' into update-eve…
tanhongit May 10, 2024
3702dfe
fix: update view template for pull request event
tongthanhphu May 10, 2024
30a9c66
fix: update view template for label event
tongthanhphu May 10, 2024
a8769e6
fix: remove icon 👥 for file lang pull request event
tongthanhphu May 10, 2024
1ae892c
fix: update view template for pull request actions
tanhongit May 10, 2024
0e98802
refactor: use interface info webhook service
tanhongit May 10, 2024
661e312
fix: update view template for label actions
tanhongit May 10, 2024
e6d291c
fix: update view template for label actions
tanhongit May 10, 2024
c1bd553
fix: ignore cs fixer
tanhongit May 10, 2024
d0af32b
fix: update view template for some actions
tanhongit May 10, 2024
db08389
fix: update view template for workflow job actions
tanhongit May 10, 2024
e5af940
fix: update view template for workflow job actions
tanhongit May 10, 2024
c8d8fb2
feat: show status and run time for workflow job complete
tanhongit May 10, 2024
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
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: ',
tongthanhphu marked this conversation as resolved.
Show resolved Hide resolved
'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