2016-06-03 06:04:27 -04:00
|
|
|
.row.prepend-top-default
|
|
|
|
.col-lg-3
|
|
|
|
%h4.prepend-top-0
|
|
|
|
= page_title
|
|
|
|
%p
|
2016-05-16 18:06:26 -04:00
|
|
|
#{link_to "Webhooks", help_page_path("web_hooks/web_hooks")} can be
|
2016-06-03 06:04:27 -04:00
|
|
|
used for binding events when something is happening within the project.
|
|
|
|
.col-lg-9.append-bottom-default
|
|
|
|
= form_for hook, as: :hook, url: polymorphic_path(url_components + [:hooks]) do |f|
|
|
|
|
= form_errors(hook)
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
= f.label :url, "URL", class: 'label-light'
|
|
|
|
= f.text_field :url, class: "form-control", placeholder: 'http://example.com/trigger-ci.json'
|
|
|
|
.form-group
|
|
|
|
= f.label :token, "Secret Token", class: 'label-light'
|
|
|
|
= f.text_field :token, class: "form-control", placeholder: ''
|
|
|
|
%p.help-block
|
2016-08-03 23:11:35 -04:00
|
|
|
Use this token to validate received payloads. It will be sent with the request in the X-Gitlab-Token HTTP header.
|
2016-06-03 06:04:27 -04:00
|
|
|
.form-group
|
|
|
|
= f.label :url, "Trigger", class: 'label-light'
|
|
|
|
%ul.list-unstyled
|
|
|
|
%li
|
|
|
|
= f.check_box :push_events, class: 'pull-left'
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :push_events, class: 'list-label' do
|
|
|
|
%strong Push events
|
|
|
|
%p.light
|
2016-08-12 16:09:26 -04:00
|
|
|
This URL will be triggered by a push to the repository
|
2016-06-03 06:04:27 -04:00
|
|
|
%li
|
|
|
|
= f.check_box :tag_push_events, class: 'pull-left'
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :tag_push_events, class: 'list-label' do
|
|
|
|
%strong Tag push events
|
|
|
|
%p.light
|
2016-08-12 16:09:26 -04:00
|
|
|
This URL will be triggered when a new tag is pushed to the repository
|
2016-06-03 06:04:27 -04:00
|
|
|
%li
|
|
|
|
= f.check_box :note_events, class: 'pull-left'
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :note_events, class: 'list-label' do
|
|
|
|
%strong Comments
|
|
|
|
%p.light
|
2016-08-12 16:09:26 -04:00
|
|
|
This URL will be triggered when someone adds a comment
|
2016-06-03 06:04:27 -04:00
|
|
|
%li
|
|
|
|
= f.check_box :issues_events, class: 'pull-left'
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :issues_events, class: 'list-label' do
|
|
|
|
%strong Issues events
|
|
|
|
%p.light
|
2016-08-12 16:09:26 -04:00
|
|
|
This URL will be triggered when an issue is created/updated/merged
|
2016-08-30 16:56:26 -04:00
|
|
|
%li
|
|
|
|
= f.check_box :confidential_issues_events, class: 'pull-left'
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :confidential_issues_events, class: 'list-label' do
|
|
|
|
%strong Confidential Issues events
|
|
|
|
%p.light
|
|
|
|
This URL will be triggered when a confidential issue is created/updated/merged
|
2016-06-03 06:04:27 -04:00
|
|
|
%li
|
|
|
|
= f.check_box :merge_requests_events, class: 'pull-left'
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :merge_requests_events, class: 'list-label' do
|
|
|
|
%strong Merge Request events
|
|
|
|
%p.light
|
2016-08-12 16:09:26 -04:00
|
|
|
This URL will be triggered when a merge request is created/updated/merged
|
2016-06-03 06:04:27 -04:00
|
|
|
%li
|
|
|
|
= f.check_box :build_events, class: 'pull-left'
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :build_events, class: 'list-label' do
|
|
|
|
%strong Build events
|
|
|
|
%p.light
|
2016-08-12 16:09:26 -04:00
|
|
|
This URL will be triggered when the build status changes
|
2016-08-02 06:06:31 -04:00
|
|
|
%li
|
|
|
|
= f.check_box :pipeline_events, class: 'pull-left'
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :pipeline_events, class: 'list-label' do
|
|
|
|
%strong Pipeline events
|
|
|
|
%p.light
|
2016-08-12 16:09:26 -04:00
|
|
|
This URL will be triggered when the pipeline status changes
|
2016-06-03 06:04:27 -04:00
|
|
|
%li
|
|
|
|
= f.check_box :wiki_page_events, class: 'pull-left'
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :wiki_page_events, class: 'list-label' do
|
|
|
|
%strong Wiki Page events
|
|
|
|
%p.light
|
2016-08-12 16:09:26 -04:00
|
|
|
This URL will be triggered when a wiki page is created/updated
|
2016-06-03 06:04:27 -04:00
|
|
|
.form-group
|
|
|
|
= f.label :enable_ssl_verification, "SSL verification", class: 'label-light checkbox'
|
|
|
|
.checkbox
|
|
|
|
= f.label :enable_ssl_verification do
|
|
|
|
= f.check_box :enable_ssl_verification
|
|
|
|
%strong Enable SSL verification
|
|
|
|
= f.submit "Add Webhook", class: "btn btn-create"
|
|
|
|
%hr
|
|
|
|
%h5.prepend-top-default
|
|
|
|
Webhooks (#{hooks.count})
|
|
|
|
- if hooks.any?
|
|
|
|
%ul.well-list
|
|
|
|
- hooks.each do |hook|
|
2017-01-19 17:11:48 -05:00
|
|
|
= render "project_hook", hook: hook
|
2016-06-03 06:04:27 -04:00
|
|
|
- else
|
|
|
|
%p.settings-message.text-center.append-bottom-0
|
|
|
|
No webhooks found, add one in the form above.
|