Skip to content

Commit 9c2f756

Browse files
committed
feat: add default pipeline action to test webhook
1 parent 435e953 commit 9c2f756

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
@@ -9,4 +9,6 @@
99
'title' => 'Title',
1010
'state' => 'State',
1111
'confidential' => 'Confidential',
12+
'status' => 'Status',
13+
'link' => 'Link',
1214
];

lang/en/events/gitlab/pipeline.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
return [
4+
'default' => 'Here is the default message for pipeline',
5+
];

lang/vi/app.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@
99
'title' => 'Tiêu đề',
1010
'state' => 'Trạng thái',
1111
'confidential' => 'Bí mật',
12+
'status' => 'Trạng thái',
13+
'link' => 'Liên kết',
1214
];
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* @var object $payload
4+
* @var string $event
5+
*/
6+
7+
?>
8+
🔥 {{ __('tg-notifier::events/gitlab/merge_request.default') }}
9+
10+
🛠 <a href="{{ $payload->project->web_url }}">{{ $payload->project->path_with_namespace }}</a>
11+
🌳 {{ __('tg-notifier::app.branch') }}: <code>{{ $payload->object_attributes->ref }}</code>
12+
📝 {{ __('tg-notifier::app.commit') }}: <code>{{ $payload->commit->message }}</code>
13+
🔗 {{ __('tg-notifier::app.link') }}: <a href="{{ $payload->commit->url }}">{{ $payload->commit->id }}</a>
14+
🚦 {{ __('tg-notifier::app.status') }}: <code>{{ $payload->object_attributes->status }}</code>

0 commit comments

Comments
 (0)