diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-03-22 22:07:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-22 22:07:22 +0800 |
commit | 22717a1c064511cf37c46af5e650baf7184cf25b (patch) | |
tree | f98bb991145605567f8b43506a7add855db0a90f /conf | |
parent | 82e511ddb1d1e98ebe6b1931766b0835fc066883 (diff) |
webhook: overhaul route handlers (#6002)
* Overual route handlers and fixes #5366
* Merge routes for repo and org
* Inject OrgRepoContext
* DRY validateWebhook
* DRY c.HasError
* Add tests
* Update CHANGELOG
Diffstat (limited to 'conf')
-rw-r--r-- | conf/locale/locale_en-US.ini | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/conf/locale/locale_en-US.ini b/conf/locale/locale_en-US.ini index b8b8bda7..f4394bc9 100644 --- a/conf/locale/locale_en-US.ini +++ b/conf/locale/locale_en-US.ini @@ -790,8 +790,10 @@ settings.collaborator_deletion_desc = This user will no longer have collaboratio settings.remove_collaborator_success = Collaborator has been removed. settings.search_user_placeholder = Search user... settings.org_not_allowed_to_be_collaborator = Organization is not allowed to be added as a collaborator. -settings.add_webhook = Add Webhook -settings.hooks_desc = Webhooks are much like basic HTTP POST event triggers. Whenever something occurs in Gogs, we will handle the notification to the target host you specify. Learn more in this <a target="_blank" href="%s">Webhooks Guide</a>. +settings.hooks_desc = Webhooks are much like basic HTTP POST event triggers. Whenever something occurs in Gogs, we will handle the notification to the target host you specify. +settings.webhooks.add_new = Add a new webhook: +settings.webhooks.choose_a_type = Choose a type... +settings.add_webhook = Add webhook settings.webhook_deletion = Delete Webhook settings.webhook_deletion_desc = Delete this webhook will remove its information and all delivery history. Do you want to continue? settings.webhook_deletion_success = Webhook has been deleted successfully! @@ -805,6 +807,8 @@ settings.webhook.response = Response settings.webhook.headers = Headers settings.webhook.payload = Payload settings.webhook.body = Body +settings.webhook.err_cannot_parse_payload_url = Cannot parse payload URL: %v +settings.webhook.err_cannot_use_local_addresses = Non admins are not allowed to use local addresses. settings.githooks_desc = Git Hooks are powered by Git itself, you can edit files of supported hooks in the list below to perform custom operations. settings.githook_edit_desc = If the hook is inactive, sample content will be presented. Leaving content to an empty value will disable this hook. settings.githook_name = Hook Name |