2017-08-17 22:00:37 +05:30
|
|
|
= form_errors(hook)
|
|
|
|
|
|
|
|
.form-group
|
2018-11-18 11:00:15 +05:30
|
|
|
= form.label :url, 'URL', class: 'label-bold'
|
2018-03-27 19:54:05 +05:30
|
|
|
= form.text_field :url, class: 'form-control'
|
2017-08-17 22:00:37 +05:30
|
|
|
.form-group
|
2018-11-18 11:00:15 +05:30
|
|
|
= form.label :token, 'Secret Token', class: 'label-bold'
|
2018-03-27 19:54:05 +05:30
|
|
|
= form.text_field :token, class: 'form-control'
|
2018-11-08 19:23:39 +05:30
|
|
|
%p.form-text.text-muted
|
2018-03-27 19:54:05 +05:30
|
|
|
Use this token to validate received payloads
|
2017-08-17 22:00:37 +05:30
|
|
|
.form-group
|
2018-11-18 11:00:15 +05:30
|
|
|
= form.label :url, 'Trigger', class: 'label-bold'
|
2018-03-27 19:54:05 +05:30
|
|
|
%ul.list-unstyled
|
|
|
|
%li
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-text.text-muted
|
2018-03-27 19:54:05 +05:30
|
|
|
System hook will be triggered on set of events like creating project
|
|
|
|
or adding ssh key. But you can also enable extra triggers like Push events.
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
.gl-mt-3
|
2018-11-08 19:23:39 +05:30
|
|
|
= form.check_box :repository_update_events, class: 'float-left'
|
2021-02-22 17:27:13 +05:30
|
|
|
.gl-ml-6
|
2017-09-10 17:25:29 +05:30
|
|
|
= form.label :repository_update_events, class: 'list-label' do
|
|
|
|
%strong Repository update events
|
|
|
|
%p.light
|
|
|
|
This URL will be triggered when repository is updated
|
2018-03-27 19:54:05 +05:30
|
|
|
%li
|
2018-11-08 19:23:39 +05:30
|
|
|
= form.check_box :push_events, class: 'float-left'
|
2021-02-22 17:27:13 +05:30
|
|
|
.gl-ml-6
|
2017-08-17 22:00:37 +05:30
|
|
|
= form.label :push_events, class: 'list-label' do
|
|
|
|
%strong Push events
|
|
|
|
%p.light
|
2017-09-10 17:25:29 +05:30
|
|
|
This URL will be triggered for each branch updated to the repository
|
2018-03-27 19:54:05 +05:30
|
|
|
%li
|
2018-11-08 19:23:39 +05:30
|
|
|
= form.check_box :tag_push_events, class: 'float-left'
|
2021-02-22 17:27:13 +05:30
|
|
|
.gl-ml-6
|
2017-08-17 22:00:37 +05:30
|
|
|
= form.label :tag_push_events, class: 'list-label' do
|
|
|
|
%strong Tag push events
|
|
|
|
%p.light
|
2017-09-10 17:25:29 +05:30
|
|
|
This URL will be triggered when a new tag is pushed to the repository
|
2018-03-27 19:54:05 +05:30
|
|
|
%li
|
2018-11-08 19:23:39 +05:30
|
|
|
= form.check_box :merge_requests_events, class: 'float-left'
|
2021-02-22 17:27:13 +05:30
|
|
|
.gl-ml-6
|
2018-03-17 18:26:18 +05:30
|
|
|
= form.label :merge_requests_events, class: 'list-label' do
|
|
|
|
%strong Merge request events
|
|
|
|
%p.light
|
|
|
|
This URL will be triggered when a merge request is created/updated/merged
|
2017-08-17 22:00:37 +05:30
|
|
|
.form-group
|
2018-11-18 11:00:15 +05:30
|
|
|
= form.label :enable_ssl_verification, 'SSL verification', class: 'label-bold checkbox'
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-check
|
|
|
|
= form.check_box :enable_ssl_verification, class: 'form-check-input'
|
|
|
|
= form.label :enable_ssl_verification, class: 'form-check-label' do
|
2018-03-27 19:54:05 +05:30
|
|
|
%strong Enable SSL verification
|