Skip to content

Commit

Permalink
fix: update issues events for gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Nov 23, 2023
1 parent 936b046 commit 5e37b8e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
11 changes: 11 additions & 0 deletions lang/en/events/gitlab/issues.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
],
'edited' => [
'title' => '⚠️ <b>Issue has been edited</b> to 🦊 :issue by :user',
'changes' => [
'title' => [
'name' => '📖 <b>Title</b> has been changed',
'from' => '📝 <b>From:</b> :title_from',
'to' => '🏷 <b>To:</b> :title_to',
],
'body' => [
'title' => '📖 <b>Body</b> has been changed',
'message' => 'Please check the issue for more details',
],
],
],
'opened' => [
'title' => '⚠️ <b>New Issue</b> to 🦊 :issue by :user',
Expand Down
11 changes: 10 additions & 1 deletion resources/views/events/gitlab/issue/update.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,13 @@
📢 <b>{{ $payload->object_attributes->title }}</b>

@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))

@if(isset($payload->changes->title))
{!! __('tg-notifier::events/gitlab/issues.edited.changes.title.name') !!}
{!! __('tg-notifier::events/gitlab/issues.edited.changes.title.from', ['title_from' => $payload->changes->title->previous]) !!}
{!! __('tg-notifier::events/gitlab/issues.edited.changes.title.to', ['title_to' => $payload->changes->title->current]) !!}
@endif
@if(isset($payload->changes->description))
{!! __('tg-notifier::events/gitlab/issues.edited.changes.body.title') !!}
{!! __('tg-notifier::events/gitlab/issues.edited.changes.body.message') !!}
@endif

0 comments on commit 5e37b8e

Please sign in to comment.