Skip to content

Commit b8cde2b

Browse files
committed
feat: add gitlab default issue, confidential issue and merge request for test webhook
1 parent 7828444 commit b8cde2b

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

lang/en/events/gitlab/merge_request.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@
2929
'update' => [
3030
'title' => '<b>Merge Request Updated</b> - :repo by :user',
3131
],
32+
'default' => 'Here is the default message for merge request',
3233
];
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
/**
3+
* @var $payload object
4+
* @var $event string
5+
*/
6+
7+
?>
8+
🔥 {!! __('tg-notifier::events/gitlab/issues.confidential_issue', [
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+
🔒 {{ __('tg-notifier::app.confidential') }}: <code>{{ $payload->object_attributes->confidential }}</code>
17+
@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
18+
@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* @var $payload object
4+
* @var $event string
5+
*/
6+
7+
?>
8+
🔥 {{ __('tg-notifier::events/gitlab/merge_request.default') }}
9+
10+
🛠 <b>{{ $payload->object_attributes->title }}</b>
11+
🌳 {{ __('tg-notifier::app.branch') }}: {{ $payload->object_attributes->source_branch }} -> {{ $payload->object_attributes->target_branch }} 🎯
12+
@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
13+
@include('tg-notifier::events.gitlab.merge_request.partials._reviewers', compact('payload'))
14+
@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))

0 commit comments

Comments
 (0)