Skip to content

Commit 1ae892c

Browse files
committed
fix: update view template for pull request actions
1 parent a8769e6 commit 1ae892c

File tree

11 files changed

+29
-12
lines changed

11 files changed

+29
-12
lines changed

lang/de/events/github/pull_request.php

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
return [
44
'review' => 'Reviewers: ',
5+
'title' => 'Title',
6+
'name' => 'Name',
57
'assigned' => [
68
'title' => '<b>Assigned Pull Request</b> - :repo by :user',
79
'body' => ':name has been assigned in the pull request <b>:pullRequest</b>',
@@ -12,6 +14,8 @@
1214
'title_closed' => '<b>Pull Request Closed</b>',
1315
],
1416
'labeled' => [
17+
'name' => 'Label',
18+
'description' => 'Description',
1519
'title' => '<b>Labeled Pull Request</b> - :repo by :user',
1620
],
1721
'locked' => [

lang/en/events/github/pull_request.php

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
return [
44
'review' => 'Reviewers: ',
5+
'title' => 'Title',
6+
'name' => 'Name',
57
'assigned' => [
68
'title' => '<b>Assigned Pull Request</b> - :repo by :user',
79
'body' => ':name has been assigned in the pull request <b>:pullRequest</b>',
@@ -12,6 +14,8 @@
1214
'title_closed' => '<b>Pull Request Closed</b>',
1315
],
1416
'labeled' => [
17+
'name' => 'Label',
18+
'description' => 'Description',
1519
'title' => '<b>Labeled Pull Request</b> - :repo by :user',
1620
],
1721
'locked' => [

lang/ja/events/github/pull_request.php

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
return [
44
'review' => 'Reviewers: ',
5+
'title' => 'Title',
6+
'name' => 'Name',
57
'assigned' => [
68
'title' => '<b>Assigned Pull Request</b> - :repo by :user',
79
'body' => ':name has been assigned in the pull request <b>:pullRequest</b>',
@@ -12,6 +14,8 @@
1214
'title_closed' => '<b>Pull Request Closed</b>',
1315
],
1416
'labeled' => [
17+
'name' => 'Label',
18+
'description' => 'Description',
1519
'title' => '<b>Labeled Pull Request</b> - :repo by :user',
1620
],
1721
'locked' => [

lang/vi/events/github/pull_request.php

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
return [
44
'review' => 'Reviewers: ',
5+
'title' => 'Title',
6+
'name' => 'Name',
57
'assigned' => [
68
'title' => '<b>Assigned Pull Request</b> - :repo by :user',
79
'body' => ':name has been assigned in the pull request <b>:pullRequest</b>',
@@ -12,6 +14,8 @@
1214
'title_closed' => '<b>Pull Request Closed</b>',
1315
],
1416
'labeled' => [
17+
'name' => 'Label',
18+
'description' => 'Description',
1519
'title' => '<b>Labeled Pull Request</b> - :repo by :user',
1620
],
1721
'locked' => [

resources/views/events/github/pull_request/closed.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
'user' => "<a href='{$payload->sender->html_url}'>@{$payload->sender->login}</a>"
1919
]) !!}
2020

21-
📢 <b>{{ $pull_request->title }}</b>
21+
🏷 {!! __('tg-notifier::events/github/pull_request.title') !!}: <code>{{ $pull_request->title }}</code>
2222

23-
🌳 {{ $pull_request->head->ref }} -> {{ $pull_request->base->ref }} 🎯
23+
🌳: {{ $pull_request->head->ref }} -> {{ $pull_request->base->ref }} 🎯
2424
@include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event'))
2525
@include('tg-notifier::events.github.pull_request.partials._reviewers', compact('payload'))
2626
@include('tg-notifier::events.shared.partials.github._body', compact('payload', 'event'))

resources/views/events/github/pull_request/labeled.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
66
$pull_request = $payload->pull_request;
7-
$description = strlen($payload->label->description) > 50 ? $payload->label->description : substr($payload->label->description, 0, 50).'...';
7+
$description = strlen($payload->label->description) > 100 ? $payload->label->description : substr($payload->label->description, 0, 100).'...';
88
?>
99

1010
‍👷‍♂️🛠️ {!! __('tg-notifier::events/github/pull_request.labeled.title', [
@@ -13,5 +13,5 @@
1313
]
1414
) !!}
1515

16-
📢 <b>{{ $payload->label->name }}</b>
17-
{{ $description }}
16+
🔖 {!! __('tg-notifier::events/github/pull_request.labeled.name') !!}: <code>{{ $payload->label->name }}</code>
17+
📑 {!! __('tg-notifier::events/github/pull_request.labeled.description') !!}: {{ $description }}

resources/views/events/github/pull_request/locked.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
]
1313
) !!}
1414

15-
📢 <b>{{ $pull_request->title }}</b>
15+
🏷 {!! __('tg-notifier::events/github/pull_request.title') !!}: <code>{{ $pull_request->title }}</code>

resources/views/events/github/pull_request/opened.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
]
1414
) !!}
1515

16-
📢 <b>{{ $pull_request->title }}</b>
16+
🏷 {!! __('tg-notifier::events/github/pull_request.title') !!}: <code>{{ $pull_request->title }}</code>
1717

1818
🌳 {{ $pull_request->head->ref }} -> {{ $pull_request->base->ref }} 🎯
1919
@include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event'))

resources/views/events/github/pull_request/reopened.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
]
1414
) !!}
1515

16-
📢 <b>{{ $pull_request->title }}</b>
16+
🏷 {!! __('tg-notifier::events/github/pull_request.title') !!}: <code>{{ $pull_request->title }}</code>
1717

18-
🌳 {{ $pull_request->head->ref }} -> {{ $pull_request->base->ref }} 🎯
18+
🌳: {{ $pull_request->head->ref }} -> {{ $pull_request->base->ref }} 🎯
1919
@include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event'))
2020
@include('tg-notifier::events.github.pull_request.partials._reviewers', compact('payload'))
2121
@include('tg-notifier::events.shared.partials.github._body', compact('payload', 'event'))

resources/views/events/github/pull_request/unlabeled.blade.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55
66
$pull_request = $payload->pull_request;
7+
$description = strlen($payload->label->description) > 100 ? $payload->label->description : substr($payload->label->description, 0, 100).'...';
78
?>
89

910
‍👷‍♂️🛠️ {!! __('tg-notifier::events/github/pull_request.unlabeled.title', [
@@ -12,5 +13,5 @@
1213
]
1314
) !!}
1415

15-
📢 <b>{{ $payload->label->name }}</b>
16-
{{ substr($payload->label->description, 0, 50).'...' }}
16+
🔖 {!! __('tg-notifier::events/github/pull_request.labeled.name') !!}: <code>{{ $payload->label->name }}</code>
17+
📑 {!! __('tg-notifier::events/github/pull_request.labeled.description') !!}: {{ $description }}

resources/views/events/github/pull_request/unlocked.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
]
1313
) !!}
1414

15-
📢 <b>{{ $pull_request->title }}</b>
15+
🏷 {!! __('tg-notifier::events/github/pull_request.title') !!}: <code>{{ $pull_request->title }}</code>

0 commit comments

Comments
 (0)