Skip to content

Commit

Permalink
fix: update IGNORE_MESSAGE for issue comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pxthinh committed Nov 29, 2023
1 parent e508f28 commit 190024e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
12 changes: 8 additions & 4 deletions resources/views/events/github/issue_comment/created.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
$issue = $payload->issue;
?>

@if(empty($issue->pull_request))
{!! __('tg-notifier::events/github/issue_comment.created.title', [
'issue' => "<a href='$issue->html_url'>{$payload->repository->full_name}#$issue->number</a>",
'user' => "<a href='{$issue->user->html_url}'>@{$issue->user->login}</a>"
]
) !!}
'issue' => "<a href='$issue->html_url'>{$payload->repository->full_name}#$issue->number</a>",
'user' => "<a href='{$issue->user->html_url}'>@{$issue->user->login}</a>"
]
) !!}

📢 <b>{{ $issue->title }}</b>

@include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event'))
@include('tg-notifier::events.shared.partials.github._body', compact('payload', 'event'))
@else
IGNORE_MESSAGE
@endif
4 changes: 4 additions & 0 deletions resources/views/events/github/issue_comment/deleted.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
$issue = $payload->issue;
?>

@if(empty($issue->pull_request))
{!! __('tg-notifier::events/github/issue_comment.deleted.title', [
'issue' => "<a href='$issue->html_url'>{$payload->repository->full_name}#$issue->number</a>",
'user' => "<a href='{$issue->user->html_url}'>@{$issue->user->login}</a>"
Expand All @@ -17,3 +18,6 @@

@include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event'))
@include('tg-notifier::events.shared.partials.github._body', compact('payload', 'event'))
@else
IGNORE_MESSAGE
@endif
4 changes: 4 additions & 0 deletions resources/views/events/github/issue_comment/edited.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
$issue = $payload->issue;
?>

@if(empty($issue->pull_request))
{!! __('tg-notifier::events/github/issue_comment.edited.title', [
'issue' => "<a href='$issue->html_url'>{$payload->repository->full_name}#$issue->number</a>",
'user' => "<a href='{$issue->user->html_url}'>@{$issue->user->login}</a>"
Expand All @@ -17,3 +18,6 @@

@include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event'))
@include('tg-notifier::events.shared.partials.github._body', compact('payload', 'event'))
@else
IGNORE_MESSAGE
@endif

0 comments on commit 190024e

Please sign in to comment.