-
-
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.
feat: add view and lang for branch protection rule and deploy key
- Loading branch information
Showing
13 changed files
with
221 additions
and
0 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,22 @@ | ||
<?php | ||
|
||
return [ | ||
'created' => [ | ||
'title' => '⚠️ <b>New Branch Protection Rules</b> form 🦑:user', | ||
'link' => '🔗 Link: :link', | ||
], | ||
'edited' => [ | ||
'title' => '📝 <b>Branch Protection Rules Have Been Edited</b> form 🦑:user', | ||
'changes' => [ | ||
'title' => [ | ||
'name' => '📖 <b>Title</b> has been changed', | ||
'from' => '📝 <b>From:</b> :title_from', | ||
'to' => '🏷 <b>To:</b> :title_to', | ||
], | ||
], | ||
'link' => '🔗 Link: :link', | ||
], | ||
'deleted' => [ | ||
'title' => '🗑 <b>Branch Protection Rules Deleted</b> form 🦑: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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
return [ | ||
'created' => [ | ||
'title' => '💬 <b>Added Deploy Key</b> ⚠️ from 🦑 :issue by :user', | ||
'message' => 'Please go to the setting deploy key to manage.', | ||
], | ||
'deleted' => [ | ||
'title' => '🗑 <b>Deploy Key Deleted</b> 💬 from 🦑 :issue by :user', | ||
'message' => 'Please go to the setting deploy key to manage.', | ||
], | ||
]; |
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,22 @@ | ||
<?php | ||
|
||
return [ | ||
'created' => [ | ||
'title' => '⚠️ <b>New Branch Protection Rules</b> form 🦑:user', | ||
'link' => '🔗 Link: :link', | ||
], | ||
'edited' => [ | ||
'title' => '📝 <b>Branch Protection Rules Have Been Edited</b> form 🦑:user', | ||
'changes' => [ | ||
'title' => [ | ||
'name' => '📖 <b>Title</b> has been changed', | ||
'from' => '📝 <b>From:</b> :title_from', | ||
'to' => '🏷 <b>To:</b> :title_to', | ||
], | ||
], | ||
'link' => '🔗 Link: :link', | ||
], | ||
'deleted' => [ | ||
'title' => '🗑 <b>Branch Protection Rules Deleted</b> form 🦑: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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
return [ | ||
'created' => [ | ||
'title' => '💬 <b>Added Deploy Key</b> ⚠️ from 🦑 :issue by :user', | ||
'message' => 'Please go to the setting deploy key to manage.', | ||
], | ||
'deleted' => [ | ||
'title' => '🗑 <b>Deploy Key Deleted</b> 💬 from 🦑 :issue by :user', | ||
'message' => 'Please go to the setting deploy key to manage.', | ||
], | ||
]; |
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,22 @@ | ||
<?php | ||
|
||
return [ | ||
'created' => [ | ||
'title' => '⚠️ <b>New Branch Protection Rules</b> form 🦑:user', | ||
'link' => '🔗 Link: :link', | ||
], | ||
'edited' => [ | ||
'title' => '📝 <b>Branch Protection Rules Have Been Edited</b> form 🦑:user', | ||
'changes' => [ | ||
'title' => [ | ||
'name' => '📖 <b>Title</b> has been changed', | ||
'from' => '📝 <b>From:</b> :title_from', | ||
'to' => '🏷 <b>To:</b> :title_to', | ||
], | ||
], | ||
'link' => '🔗 Link: :link', | ||
], | ||
'deleted' => [ | ||
'title' => '🗑 <b>Branch Protection Rules Deleted</b> form 🦑: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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
return [ | ||
'created' => [ | ||
'title' => '💬 <b>Added Deploy Key</b> ⚠️ from 🦑 :issue by :user', | ||
'message' => 'Please go to the setting deploy key to manage.', | ||
], | ||
'deleted' => [ | ||
'title' => '🗑 <b>Deploy Key Deleted</b> 💬 from 🦑 :issue by :user', | ||
'message' => 'Please go to the setting deploy key to manage.', | ||
], | ||
]; |
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,22 @@ | ||
<?php | ||
|
||
return [ | ||
'created' => [ | ||
'title' => '⚠️ <b>New Branch Protection Rules</b> form 🦑:user', | ||
'link' => '🔗 Link: :link', | ||
], | ||
'edited' => [ | ||
'title' => '📝 <b>Branch Protection Rules Have Been Edited</b> form 🦑:user', | ||
'changes' => [ | ||
'title' => [ | ||
'name' => '📖 <b>Title</b> has been changed', | ||
'from' => '📝 <b>From:</b> :title_from', | ||
'to' => '🏷 <b>To:</b> :title_to', | ||
], | ||
], | ||
'link' => '🔗 Link: :link', | ||
], | ||
'deleted' => [ | ||
'title' => '🗑 <b>Branch Protection Rules Deleted</b> form 🦑: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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
return [ | ||
'created' => [ | ||
'title' => '💬 <b>Added Deploy Key</b> ⚠️ from 🦑 :issue by :user', | ||
'message' => 'Please go to the setting deploy key to manage.', | ||
], | ||
'deleted' => [ | ||
'title' => '🗑 <b>Deploy Key Deleted</b> 💬 from 🦑 :issue by :user', | ||
'message' => 'Please go to the setting deploy key to manage.', | ||
], | ||
]; |
19 changes: 19 additions & 0 deletions
19
resources/views/events/github/branch_protection_rule/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,19 @@ | ||
<?php | ||
/** | ||
* @var $payload object | ||
*/ | ||
$repository = $payload->repository; | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/branch_protection_rule.deleted.title', [ | ||
'user' => "<a href='$repository->html_url'>$repository->full_name</a>" | ||
] | ||
) !!} | ||
|
||
📢 <b>{{ $payload->rule->name }}</b> | ||
|
||
{!! __('tg-notifier::events/github/branch_protection_rule.created.link', [ | ||
'link' => "<a href='$repository->html_url/settings/branch_protection_rules/{$payload->rule->id}'>{$repository->html_url}/settings/branch_protection_rules/{$payload->rule->id}</a>" | ||
] | ||
) !!} |
14 changes: 14 additions & 0 deletions
14
resources/views/events/github/branch_protection_rule/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,14 @@ | ||
<?php | ||
/** | ||
* @var $payload object | ||
*/ | ||
$repository = $payload->repository; | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/branch_protection_rule.deleted.title', [ | ||
'user' => "<a href='$repository->html_url'>$repository->full_name</a>" | ||
] | ||
) !!} | ||
|
||
📢 <b>{{ $payload->rule->name }}</b> |
24 changes: 24 additions & 0 deletions
24
resources/views/events/github/branch_protection_rule/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,24 @@ | ||
<?php | ||
/** | ||
* @var $payload object | ||
*/ | ||
$repository = $payload->repository; | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/branch_protection_rule.edited.title', [ | ||
'user' => "<a href='$repository->html_url'>$repository->full_name</a>" | ||
] | ||
) !!} | ||
|
||
@if(isset($payload->changes->name->from)) | ||
{!! __('tg-notifier::events/github/issues.edited.changes.title.from', ['title_from' => $payload->changes->name->from]) !!} | ||
{!! __('tg-notifier::events/github/issues.edited.changes.title.to', ['title_to' => $payload->rule->name]) !!} | ||
@else | ||
📢 <b>{{ $payload->rule->name }}</b> | ||
@endif | ||
|
||
{!! __('tg-notifier::events/github/branch_protection_rule.edited.link', [ | ||
'link' => "<a href='$repository->html_url/settings/branch_protection_rules/{$payload->rule->id}'>{$repository->html_url}/settings/branch_protection_rules/{$payload->rule->id}</a>" | ||
] | ||
) !!} |
14 changes: 14 additions & 0 deletions
14
resources/views/events/github/deploy_key/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,14 @@ | ||
<?php | ||
/** | ||
* @var $payload object | ||
*/ | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/deploy_key.created.title', [ | ||
'issue' => "<a href='{$payload->repository->html_url}'>{$payload->repository->full_name}</a>", | ||
'user' => "<b>{$payload->key->added_by}</b>", | ||
] | ||
) !!} | ||
|
||
📢 <b>{{ $payload->key->title }}</b> | ||
{!! __('tg-notifier::events/github/deploy_key.created.message') !!} |
14 changes: 14 additions & 0 deletions
14
resources/views/events/github/deploy_key/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,14 @@ | ||
<?php | ||
/** | ||
* @var $payload object | ||
*/ | ||
?> | ||
|
||
{!! __('tg-notifier::events/github/deploy_key.deleted.title', [ | ||
'issue' => "<a href={$payload->repository->html_url}'>{$payload->repository->full_name}</a>", | ||
'user' => "<b>{$payload->key->added_by}</b>", | ||
] | ||
) !!} | ||
|
||
📢 <b>{{ $payload->key->title }}</b> | ||
{!! __('tg-notifier::events/github/deploy_key.deleted.message') !!} |