2022-10-11 01:57:18 +05:30
= form_errors(hook)
2016-06-16 23:09:34 +05:30
2023-03-04 22:38:38 +05:30
.js-vue-webhook-form{ data: webhook_form_data(hook) }
2017-08-17 22:00:37 +05:30
.form-group
2021-03-11 19:13:27 +05:30
= form.label :token, s_('Webhooks|Secret token'), class: 'label-bold'
2023-01-13 00:05:48 +05:30
= form.password_field :token, value: hook.masked_token, autocomplete: 'new-password', class: 'form-control gl-form-input'
2018-11-08 19:23:39 +05:30
%p.form-text.text-muted
2022-03-02 08:16:31 +05:30
- code_start = '<code>'.html_safe
- code_end = '</code>'.html_safe
2023-01-13 00:05:48 +05:30
= s_('Webhooks|Used to validate received payloads. Sent with the request in the %{code_start}X-Gitlab-Token%{code_end} HTTP header.').html_safe % { code_start: code_start, code_end: code_end }
2017-08-17 22:00:37 +05:30
.form-group
2020-11-24 15:15:51 +05:30
= form.label :url, s_('Webhooks|Trigger'), class: 'label-bold'
2022-06-21 17:19:12 +05:30
%ul.list-unstyled
%li.gl-pb-5
2023-03-04 22:38:38 +05:30
.js-vue-push-events{ data: { push_events: hook.push_events.to_s, strategy: hook.branch_filter_strategy, is_new_hook: hook.new_record?.to_s, push_events_branch_filter: hook.push_events_branch_filter } }
2022-06-21 17:19:12 +05:30
%li.gl-pb-5
= form.gitlab_ui_checkbox_component :tag_push_events,
2023-03-04 22:38:38 +05:30
integration_webhook_event_human_name(:tag_push_events),
2022-06-21 17:19:12 +05:30
help_text: s_('Webhooks|A new tag is pushed to the repository.')
%li.gl-pb-5
= form.gitlab_ui_checkbox_component :note_events,
2023-03-04 22:38:38 +05:30
integration_webhook_event_human_name(:note_events),
2022-06-21 17:19:12 +05:30
help_text: s_('Webhooks|A comment is added to an issue or merge request.')
%li.gl-pb-5
= form.gitlab_ui_checkbox_component :confidential_note_events,
2023-03-04 22:38:38 +05:30
integration_webhook_event_human_name(:confidential_note_events),
2022-06-21 17:19:12 +05:30
help_text: s_('Webhooks|A comment is added to a confidential issue.')
%li.gl-pb-5
= form.gitlab_ui_checkbox_component :issues_events,
2023-03-04 22:38:38 +05:30
integration_webhook_event_human_name(:issues_events),
2022-06-21 17:19:12 +05:30
help_text: s_('Webhooks|An issue is created, updated, closed, or reopened.')
%li.gl-pb-5
= form.gitlab_ui_checkbox_component :confidential_issues_events,
2023-03-04 22:38:38 +05:30
integration_webhook_event_human_name(:confidential_issues_events),
2022-06-21 17:19:12 +05:30
help_text: s_('Webhooks|A confidential issue is created, updated, closed, or reopened.')
2021-02-22 17:27:13 +05:30
- if @group
= render_if_exists 'groups/hooks/member_events', form: form
2021-03-11 19:13:27 +05:30
= render_if_exists 'groups/hooks/subgroup_events', form: form
2022-06-21 17:19:12 +05:30
%li.gl-pb-5
= form.gitlab_ui_checkbox_component :merge_requests_events,
2023-03-04 22:38:38 +05:30
integration_webhook_event_human_name(:merge_requests_events),
2022-06-21 17:19:12 +05:30
help_text: s_('Webhooks|A merge request is created, updated, or merged.')
%li.gl-pb-5
= form.gitlab_ui_checkbox_component :job_events,
2023-03-04 22:38:38 +05:30
integration_webhook_event_human_name(:job_events),
2022-06-21 17:19:12 +05:30
help_text: s_("Webhooks|A job's status changes.")
%li.gl-pb-5
= form.gitlab_ui_checkbox_component :pipeline_events,
2023-03-04 22:38:38 +05:30
integration_webhook_event_human_name(:pipeline_events),
2022-06-21 17:19:12 +05:30
help_text: s_("Webhooks|A pipeline's status changes.")
%li.gl-pb-5
= form.gitlab_ui_checkbox_component :wiki_page_events,
2023-03-04 22:38:38 +05:30
integration_webhook_event_human_name(:wiki_page_events),
2022-06-21 17:19:12 +05:30
help_text: s_('Webhooks|A wiki page is created or updated.')
%li.gl-pb-5
= form.gitlab_ui_checkbox_component :deployment_events,
2023-03-04 22:38:38 +05:30
integration_webhook_event_human_name(:deployment_events),
2022-06-21 17:19:12 +05:30
help_text: s_('Webhooks|A deployment starts, finishes, fails, or is canceled.')
%li.gl-pb-5
= form.gitlab_ui_checkbox_component :feature_flag_events,
2023-03-04 22:38:38 +05:30
integration_webhook_event_human_name(:feature_flag_events),
2022-06-21 17:19:12 +05:30
help_text: s_('Webhooks|A feature flag is turned on or off.')
%li.gl-pb-5
= form.gitlab_ui_checkbox_component :releases_events,
2023-03-04 22:38:38 +05:30
integration_webhook_event_human_name(:releases_events),
2022-06-21 17:19:12 +05:30
help_text: s_('Webhooks|A release is created or updated.')
2017-08-17 22:00:37 +05:30
.form-group
2020-11-24 15:15:51 +05:30
= form.label :enable_ssl_verification, s_('Webhooks|SSL verification'), class: 'label-bold checkbox'
2022-06-21 17:19:12 +05:30
%ul.list-unstyled
%li
= form.gitlab_ui_checkbox_component :enable_ssl_verification, s_('Webhooks|Enable SSL verification')