-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from cslant/feature/view_template
Feature/view template
- Loading branch information
Showing
70 changed files
with
1,079 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
return [ | ||
'issue_comment_title' => '📢', | ||
'created' => [ | ||
'title' => '💬 <b>New Issue Comment</b> ⚠️ to 🦑 :issue by :user', | ||
], | ||
'deleted' => [ | ||
'title' => '🗑 <b>Issue Comment Deleted</b> 💬 from 🦑 :issue by :user', | ||
], | ||
'edited' => [ | ||
'title' => '📝 <b>Issue Comment Edited</b> 💬 in 🦑 :issue by :user', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
return [ | ||
'default' => [ | ||
'title' => '♻️ <b>Connection Successful</b>', | ||
'organization' => '🏢 Organization: <b>:organization</b>', | ||
'full_name' => '📦 Repository: 🦑<b>:full_name</b>', | ||
'sender' => '👤 Sender (triggered the event): <b>:sender</b>', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
return [ | ||
'review' => '👥 Reviewers: ', | ||
'closed' => [ | ||
'title' => ':title - 🦑:issue by :user', | ||
'title_merged' => '✅ <b>Pull Request Merged</b>', | ||
'title_closed' => '❌ <b>Pull Request Closed</b>', | ||
], | ||
'opened' => [ | ||
'title' => '👷♂️🛠️ <b>New Pull Request</b> - 🦑:issue by :user', | ||
], | ||
'reopened' => [ | ||
'title' => '👷♂️🛠️ <b>Reopened Pull Request</b> - 🦑:issue by :user', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,7 @@ | |
'_body' => [ | ||
'title' => '📖 <b>Content:</b>', | ||
], | ||
'_assignee' => [ | ||
'title' => '🙋 Assignee: ', | ||
], | ||
]; |
20 changes: 20 additions & 0 deletions
20
resources/views/events/github/issue_comment/created.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* @var $payload mixed | ||
* @var $event string | ||
*/ | ||
$issue = $payload->issue; | ||
?> | ||
|
||
{!! __('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>" | ||
] | ||
) !!} | ||
|
||
📢 <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')) |
20 changes: 20 additions & 0 deletions
20
resources/views/events/github/issue_comment/deleted.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* @var $payload mixed | ||
* @var $event string | ||
*/ | ||
$issue = $payload->issue; | ||
?> | ||
|
||
{!! __('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>" | ||
] | ||
) !!} | ||
|
||
📢 <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')) |
20 changes: 20 additions & 0 deletions
20
resources/views/events/github/issue_comment/edited.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* @var $payload mixed | ||
* @var $event string | ||
*/ | ||
$issue = $payload->issue; | ||
?> | ||
|
||
{!! __('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>" | ||
] | ||
) !!} | ||
|
||
📢 <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')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* @var $payload mixed | ||
* @var $event string | ||
*/ | ||
$issue = $payload->issue; | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/issues.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>" | ||
] | ||
) !!} | ||
|
||
📢 <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')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/** | ||
* @var $payload mixed | ||
* @var $event string | ||
*/ | ||
$issue = $payload->issue; | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/issues.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>" | ||
] | ||
) !!} | ||
|
||
📢 <b>{{ $issue->title }}</b> | ||
|
||
@include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event')) | ||
@if(isset($payload->changes->title)) | ||
{!! __('tg-notifier::events/github/issues.edited.changes.title.name') !!} | ||
{!! __('tg-notifier::events/github/issues.edited.changes.title.from', ['title_from' => $payload->changes->title->from]) !!} | ||
{!! __('tg-notifier::events/github/issues.edited.changes.title.to', ['title_to' => $payload->issue->title]) !!} | ||
@elseif(isset($payload->changes->body)) | ||
{!! __('tg-notifier::events/github/issues.edited.changes.body.title') !!} | ||
{!! __('tg-notifier::events/github/issues.edited.changes.body.message') !!} | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* @var $payload mixed | ||
* @var $event string | ||
*/ | ||
$issue = $payload->issue; | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/issues.locked.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>" | ||
] | ||
) !!} | ||
|
||
📢 <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')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* @var $payload mixed | ||
* @var $event string | ||
*/ | ||
$issue = $payload->issue; | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/issues.opened.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>" | ||
] | ||
) !!} | ||
|
||
📢 <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')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* @var $payload mixed | ||
* @var $event string | ||
*/ | ||
$issue = $payload->issue; | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/issues.pinned.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>" | ||
] | ||
) !!} | ||
|
||
📢 <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')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* @var $payload mixed | ||
* @var $event string | ||
*/ | ||
$issue = $payload->issue; | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/issues.reopened.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>" | ||
] | ||
) !!} | ||
|
||
📢 <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')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* @var $payload mixed | ||
* @var $event string | ||
*/ | ||
$issue = $payload->issue; | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/issues.unlocked.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>" | ||
] | ||
) !!} | ||
|
||
📢 <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')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* @var $payload mixed | ||
* @var $event string | ||
*/ | ||
$issue = $payload->issue; | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/issues.unpinned.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>" | ||
] | ||
) !!} | ||
|
||
📢 <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')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
/** | ||
* @var $payload mixed | ||
*/ | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/ping.default.title') !!} | ||
|
||
@if(isset($payload->organization)) | ||
{!! __('tg-notifier::events/github/ping.default.organization', ['organization' => $payload->organization->login]) !!} | ||
@endif | ||
@if(isset($payload->repository)) | ||
{!! __('tg-notifier::events/github/ping.default.full_name', ['full_name' => $payload->repository->full_name]) !!} | ||
@endif | ||
@if(isset($payload->sender)) | ||
{!! __('tg-notifier::events/github/ping.default.sender', ['sender' => $payload->sender->login]) !!} | ||
@endif |
29 changes: 29 additions & 0 deletions
29
resources/views/events/github/pull_request/closed.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* @var $payload mixed | ||
* @var $event string | ||
*/ | ||
$pull_request = $payload->pull_request; | ||
$message = __('tg-notifier::events/github/pull_request.closed.title_merged'); | ||
if (!isset($payload->pull_request->merged) || $payload->pull_request->merged !== true) { | ||
$message = __('tg-notifier::events/github/pull_request.closed.title_closed'); | ||
} | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/pull_request.closed.title', [ | ||
'title' => $message, | ||
'issue' => "<a href='$pull_request->html_url'>{$payload->repository->full_name}#$pull_request->number</a>", | ||
'user' => "<a href='{$pull_request->user->html_url}'>@{$pull_request->user->login}</a>" | ||
] | ||
) !!} | ||
|
||
📢 <b>{{ $pull_request->title }}</b> | ||
|
||
🌳 {{ $pull_request->head->ref }} -> {{ $pull_request->base->ref }} 🎯 | ||
@include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event')) | ||
|
||
@include('tg-notifier::events.github.pull_request.partials._reviewers', compact('payload')) | ||
|
||
@include('tg-notifier::events.shared.partials.github._body', compact('payload', 'event')) |
Oops, something went wrong.