2017-04-20 04:31:37 -04:00
= form_errors(hook)
2016-06-03 06:04:27 -04:00
2017-04-20 04:31:37 -04:00
.form-group
2020-09-03 08:08:47 -04:00
= form.label :url, s_('Webhooks|URL'), class: 'label-bold'
2021-02-02 10:09:06 -05:00
= form.text_field :url, class: 'form-control gl-form-input', placeholder: 'http://example.com/trigger-ci.json'
2021-02-16 19:09:19 -05:00
%p.form-text.text-muted
= s_('Webhooks|URL must be percent-encoded if neccessary.')
2017-04-20 04:31:37 -04:00
.form-group
2021-02-16 19:09:19 -05:00
= form.label :token, s_('Webhooks|Secret token'), class: 'label-bold'
2021-02-02 10:09:06 -05:00
= form.text_field :token, class: 'form-control gl-form-input', placeholder: ''
2018-04-11 14:26:37 -04:00
%p.form-text.text-muted
2021-02-16 19:09:19 -05:00
= s_('Webhooks|Use this token to validate received payloads. It is sent with the request in the X-Gitlab-Token HTTP header.')
2017-04-20 04:31:37 -04:00
.form-group
2020-09-03 08:08:47 -04:00
= form.label :url, s_('Webhooks|Trigger'), class: 'label-bold'
2020-11-19 10:09:13 -05:00
%ul.list-unstyled.gl-ml-6
2017-04-20 04:31:37 -04:00
%li
2018-05-31 15:20:46 -04:00
= form.check_box :push_events, class: 'form-check-input'
2021-02-02 10:09:06 -05:00
= form.label :push_events, class: 'list-label form-check-label gl-ml-1 gl-mb-3' do
2020-09-03 08:08:47 -04:00
%strong= s_('Webhooks|Push events')
2021-02-02 10:09:06 -05:00
= form.text_field :push_events_branch_filter, class: 'form-control gl-form-input', placeholder: 'Branch name or wildcard pattern to trigger on (leave blank for all)'
2020-12-16 01:10:11 -05:00
%p.text-muted.gl-ml-1
2021-02-16 19:09:19 -05:00
= s_('Webhooks|URL is triggered by a push to the repository')
2017-04-20 04:31:37 -04:00
%li
2018-05-31 15:20:46 -04:00
= form.check_box :tag_push_events, class: 'form-check-input'
2020-12-16 01:10:11 -05:00
= form.label :tag_push_events, class: 'list-label form-check-label gl-ml-1' do
2020-09-03 08:08:47 -04:00
%strong= s_('Webhooks|Tag push events')
2020-12-16 01:10:11 -05:00
%p.text-muted.gl-ml-1
2021-02-16 19:09:19 -05:00
= s_('Webhooks|URL is triggered when a new tag is pushed to the repository')
2017-04-20 04:31:37 -04:00
%li
2018-05-31 15:20:46 -04:00
= form.check_box :note_events, class: 'form-check-input'
2020-12-16 01:10:11 -05:00
= form.label :note_events, class: 'list-label form-check-label gl-ml-1' do
2020-09-03 08:08:47 -04:00
%strong= s_('Webhooks|Comments')
2020-12-16 01:10:11 -05:00
%p.text-muted.gl-ml-1
2021-02-16 19:09:19 -05:00
= s_('Webhooks|URL is triggered when someone adds a comment')
2018-04-03 07:00:33 -04:00
%li
2018-05-31 15:20:46 -04:00
= form.check_box :confidential_note_events, class: 'form-check-input'
2020-12-16 01:10:11 -05:00
= form.label :confidential_note_events, class: 'list-label form-check-label gl-ml-1' do
2021-02-16 19:09:19 -05:00
%strong= s_('Webhooks|Confidential comments')
2020-12-16 01:10:11 -05:00
%p.text-muted.gl-ml-1
2021-02-16 19:09:19 -05:00
= s_('Webhooks|URL is triggered when someone adds a comment on a confidential issue')
2017-04-20 04:31:37 -04:00
%li
2018-05-31 15:20:46 -04:00
= form.check_box :issues_events, class: 'form-check-input'
2020-12-16 01:10:11 -05:00
= form.label :issues_events, class: 'list-label form-check-label gl-ml-1' do
2020-09-03 08:08:47 -04:00
%strong= s_('Webhooks|Issues events')
2020-12-16 01:10:11 -05:00
%p.text-muted.gl-ml-1
2021-04-29 08:09:58 -04:00
= s_('Webhooks|URL is triggered when an issue is created, updated, closed, or reopened')
2017-04-20 04:31:37 -04:00
%li
2018-05-31 15:20:46 -04:00
= form.check_box :confidential_issues_events, class: 'form-check-input'
2020-12-16 01:10:11 -05:00
= form.label :confidential_issues_events, class: 'list-label form-check-label gl-ml-1' do
2021-02-16 19:09:19 -05:00
%strong= s_('Webhooks|Confidential issues events')
2020-12-16 01:10:11 -05:00
%p.text-muted.gl-ml-1
2021-04-29 08:09:58 -04:00
= s_('Webhooks|URL is triggered when a confidential issue is created, updated, closed, or reopened')
2020-12-16 01:10:11 -05:00
- if @group
= render_if_exists 'groups/hooks/member_events', form: form
2021-02-04 16:09:06 -05:00
= render_if_exists 'groups/hooks/subgroup_events', form: form
2017-04-20 04:31:37 -04:00
%li
2018-05-31 15:20:46 -04:00
= form.check_box :merge_requests_events, class: 'form-check-input'
2020-12-16 01:10:11 -05:00
= form.label :merge_requests_events, class: 'list-label form-check-label gl-ml-1' do
2020-09-03 08:08:47 -04:00
%strong= s_('Webhooks|Merge request events')
2020-12-16 01:10:11 -05:00
%p.text-muted.gl-ml-1
2021-02-16 19:09:19 -05:00
= s_('Webhooks|URL is triggered when a merge request is created, updated, or merged')
2017-04-20 04:31:37 -04:00
%li
2018-05-31 15:20:46 -04:00
= form.check_box :job_events, class: 'form-check-input'
2020-12-16 01:10:11 -05:00
= form.label :job_events, class: 'list-label form-check-label gl-ml-1' do
2020-09-03 08:08:47 -04:00
%strong= s_('Webhooks|Job events')
2020-12-16 01:10:11 -05:00
%p.text-muted.gl-ml-1
2021-02-16 19:09:19 -05:00
= s_('Webhooks|URL is triggered when the job status changes')
2017-04-20 04:31:37 -04:00
%li
2018-05-31 15:20:46 -04:00
= form.check_box :pipeline_events, class: 'form-check-input'
2020-12-16 01:10:11 -05:00
= form.label :pipeline_events, class: 'list-label form-check-label gl-ml-1' do
2020-09-03 08:08:47 -04:00
%strong= s_('Webhooks|Pipeline events')
2020-12-16 01:10:11 -05:00
%p.text-muted.gl-ml-1
2021-02-16 19:09:19 -05:00
= s_('Webhooks|URL is triggered when the pipeline status changes')
2017-04-20 04:31:37 -04:00
%li
2018-05-31 15:20:46 -04:00
= form.check_box :wiki_page_events, class: 'form-check-input'
2020-12-16 01:10:11 -05:00
= form.label :wiki_page_events, class: 'list-label form-check-label gl-ml-1' do
2021-02-16 19:09:19 -05:00
%strong= s_('Webhooks|Wiki page events')
2020-12-16 01:10:11 -05:00
%p.text-muted.gl-ml-1
2021-02-16 19:09:19 -05:00
= s_('Webhooks|URL is triggered when a wiki page is created or updated')
2020-08-13 17:10:04 -04:00
%li
= form.check_box :deployment_events, class: 'form-check-input'
2020-12-16 01:10:11 -05:00
= form.label :deployment_events, class: 'list-label form-check-label gl-ml-1' do
2020-08-13 17:10:04 -04:00
%strong= s_('Webhooks|Deployment events')
2020-12-16 01:10:11 -05:00
%p.text-muted.gl-ml-1
2021-02-16 19:09:19 -05:00
= s_('Webhooks|URL is triggered when a deployment starts, finishes, fails, or is canceled')
2020-10-28 11:08:49 -04:00
%li
= form.check_box :feature_flag_events, class: 'form-check-input'
2020-12-16 01:10:11 -05:00
= form.label :feature_flag_events, class: 'list-label form-check-label gl-ml-1' do
2021-02-16 19:09:19 -05:00
%strong= s_('Webhooks|Feature flag events')
2020-12-16 01:10:11 -05:00
%p.text-muted.gl-ml-1
2021-02-16 19:09:19 -05:00
= s_('Webhooks|URL is triggered when a feature flag is turned on or off')
2020-11-06 19:08:58 -05:00
%li
= form.check_box :releases_events, class: 'form-check-input'
2020-12-16 01:10:11 -05:00
= form.label :releases_events, class: 'list-label form-check-label gl-ml-1' do
2020-11-06 19:08:58 -05:00
%strong= s_('Webhooks|Releases events')
2020-12-16 01:10:11 -05:00
%p.text-muted.gl-ml-1
2021-02-16 19:09:19 -05:00
= s_('Webhooks|URL is triggered when a release is created or updated')
2017-04-20 04:31:37 -04:00
.form-group
2020-09-03 08:08:47 -04:00
= form.label :enable_ssl_verification, s_('Webhooks|SSL verification'), class: 'label-bold checkbox'
2018-04-11 14:05:57 -04:00
.form-check
2018-05-31 15:20:46 -04:00
= form.check_box :enable_ssl_verification, class: 'form-check-input'
2020-12-16 01:10:11 -05:00
= form.label :enable_ssl_verification, class: 'form-check-label gl-ml-1' do
2020-09-03 08:08:47 -04:00
%strong= s_('Webhooks|Enable SSL verification')