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
2018-07-19 18:11:31 -04:00
= form.label :url, 'URL', class: 'label-bold'
2017-04-20 04:31:37 -04:00
= form.text_field :url, class: 'form-control', placeholder: 'http://example.com/trigger-ci.json'
.form-group
2018-07-19 18:11:31 -04:00
= form.label :token, 'Secret Token', class: 'label-bold'
2017-04-20 04:31:37 -04:00
= form.text_field :token, class: 'form-control', placeholder: ''
2018-04-11 14:26:37 -04:00
%p.form-text.text-muted
2017-04-20 04:31:37 -04:00
Use this token to validate received payloads. It will be sent with the request in the X-Gitlab-Token HTTP header.
.form-group
2018-07-19 18:11:31 -04:00
= form.label :url, 'Trigger', class: 'label-bold'
2018-05-31 15:20:46 -04:00
%ul.list-unstyled.prepend-left-20
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'
= form.label :push_events, class: 'list-label form-check-label ml-1' do
%strong Push events
2020-02-24 13:09:05 -05:00
= form.text_field :push_events_branch_filter, class: 'form-control', placeholder: 'Branch name or wildcard pattern to trigger on (leave blank for all)'
%p.text-muted.ml-1
2018-05-31 15:20:46 -04:00
This URL will be 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'
= form.label :tag_push_events, class: 'list-label form-check-label ml-1' do
%strong Tag push events
2020-02-24 13:09:05 -05:00
%p.text-muted.ml-1
2018-05-31 15:20:46 -04:00
This URL will be 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'
= form.label :note_events, class: 'list-label form-check-label ml-1' do
%strong Comments
2020-02-24 13:09:05 -05:00
%p.text-muted.ml-1
2018-05-31 15:20:46 -04:00
This URL will be 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'
= form.label :confidential_note_events, class: 'list-label form-check-label ml-1' do
%strong Confidential Comments
2020-02-24 13:09:05 -05:00
%p.text-muted.ml-1
2018-05-31 15:20:46 -04:00
This URL will be 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'
= form.label :issues_events, class: 'list-label form-check-label ml-1' do
%strong Issues events
2020-02-24 13:09:05 -05:00
%p.text-muted.ml-1
2018-05-31 15:20:46 -04:00
This URL will be triggered when an issue is created/updated/merged
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'
= form.label :confidential_issues_events, class: 'list-label form-check-label ml-1' do
%strong Confidential Issues events
2020-02-24 13:09:05 -05:00
%p.text-muted.ml-1
2018-05-31 15:20:46 -04:00
This URL will be triggered when a confidential issue is created/updated/merged
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'
= form.label :merge_requests_events, class: 'list-label form-check-label ml-1' do
%strong Merge request events
2020-02-24 13:09:05 -05:00
%p.text-muted.ml-1
2018-05-31 15:20:46 -04:00
This URL will be triggered when a merge request is created/updated/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'
= form.label :job_events, class: 'list-label form-check-label ml-1' do
%strong Job events
2020-02-24 13:09:05 -05:00
%p.text-muted.ml-1
2018-05-31 15:20:46 -04:00
This URL will be 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'
= form.label :pipeline_events, class: 'list-label form-check-label ml-1' do
%strong Pipeline events
2020-02-24 13:09:05 -05:00
%p.text-muted.ml-1
2018-05-31 15:20:46 -04:00
This URL will be 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'
= form.label :wiki_page_events, class: 'list-label form-check-label ml-1' do
%strong Wiki Page events
2020-02-24 13:09:05 -05:00
%p.text-muted.ml-1
2018-05-31 15:20:46 -04:00
This URL will be triggered when a wiki page is created/updated
2017-04-20 04:31:37 -04:00
.form-group
2018-07-19 18:11:31 -04:00
= form.label :enable_ssl_verification, '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'
= form.label :enable_ssl_verification, class: 'form-check-label ml-1' do
2017-04-20 04:31:37 -04:00
%strong Enable SSL verification