Skip to content

Commit 7828444

Browse files
committed
feat: add gitlab default issue for test webhook
1 parent 155a2f4 commit 7828444

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

lang/en/app.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@
77
'branch' => 'Branch',
88
'commit' => 'Commit',
99
'title' => 'Title',
10+
'state' => 'State',
11+
'confidential' => 'Confidential',
1012
];

lang/en/events/gitlab/issues.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
return [
44
'issue_title' => '📢',
5+
'default' => 'Default issue to :issue by :user',
6+
'confidential_issue' => '🔒 <b>Confidential Issue</b> to :issue by :user',
57
'closed' => [
68
'title' => '<b>Issue Closed </b> to :issue by :user',
79
],

lang/vi/app.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@
77
'branch' => 'Tên nhánh',
88
'commit' => 'Commit',
99
'title' => 'Tiêu đề',
10+
'state' => 'Trạng thái',
11+
'confidential' => 'Bí mật',
1012
];
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
/**
3+
* @var $payload object
4+
* @var $event string
5+
*/
6+
7+
?>
8+
🔥 {!! __('tg-notifier::events/gitlab/issues.default', [
9+
'issue' => "🦊<a href='{$payload->object_attributes->url}'>{$payload->project->path_with_namespace}#{$payload->object_attributes->id}</a>",
10+
'user' => "<b>{$payload->user->name}</b>"
11+
]
12+
) !!}
13+
14+
📢 {{ __('tg-notifier::app.title') }}: <code>{{ $payload->object_attributes->title }}</code>
15+
📡 {{ __('tg-notifier::app.state') }}: <code>{{ $payload->object_attributes->state }}</code>
16+
@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
17+
@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))

0 commit comments

Comments
 (0)