2016-03-10 14:48:29 -05:00
|
|
|
- page_title "Webhooks"
|
2016-04-26 05:56:18 -04:00
|
|
|
.row.prepend-top-default
|
|
|
|
.col-lg-3.profile-settings-sidebar
|
|
|
|
%h4.prepend-top-0
|
|
|
|
= page_title
|
|
|
|
%p
|
|
|
|
#{link_to "Webhooks", help_page_path("web_hooks", "web_hooks")} can be
|
|
|
|
used for binding events when something is happening within the project.
|
|
|
|
.col-lg-9.append-bottom-default
|
|
|
|
%h5.prepend-top-0
|
|
|
|
Add new webhook
|
|
|
|
= form_for [@project.namespace.becomes(Namespace), @project, @hook], as: :hook, url: namespace_project_hooks_path(@project.namespace, @project) do |f|
|
|
|
|
= form_errors(@hook)
|
2013-08-15 14:19:29 -04:00
|
|
|
|
2016-04-26 05:56:18 -04:00
|
|
|
.form-group
|
|
|
|
= f.label :url, "URL", class: "label-light"
|
|
|
|
= f.text_field :url, class: "form-control", placeholder: "http://example.com/trigger-ci.json"
|
2016-04-30 04:34:31 -04:00
|
|
|
.form-group
|
|
|
|
= f.label :token, "Secret Token", class: 'label-light'
|
|
|
|
= f.text_field :token, class: "form-control", placeholder: ''
|
|
|
|
%p.help-block
|
|
|
|
Use this token to validate received payloads
|
2016-04-26 05:56:18 -04:00
|
|
|
.form-group
|
|
|
|
= f.label :url, "Trigger", class: "label-light"
|
|
|
|
%div
|
|
|
|
= f.check_box :push_events, class: "pull-left"
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :push_events, class: "label-light append-bottom-0" do
|
|
|
|
Push events
|
|
|
|
%p.light
|
|
|
|
This url will be triggered by a push to the repository
|
|
|
|
%div
|
|
|
|
= f.check_box :tag_push_events, class: "pull-left"
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :tag_push_events, class: "label-light append-bottom-0" do
|
|
|
|
Tag push events
|
|
|
|
%p.light
|
|
|
|
This url will be triggered when a new tag is pushed to the repository
|
|
|
|
%div
|
|
|
|
= f.check_box :note_events, class: "pull-left"
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :note_events, class: "label-light append-bottom-0" do
|
|
|
|
Comments
|
|
|
|
%p.light
|
|
|
|
This url will be triggered when someone adds a comment
|
|
|
|
%div
|
|
|
|
= f.check_box :issues_events, class: "pull-left"
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :issues_events, class: "label-light append-bottom-0" do
|
|
|
|
Issues events
|
|
|
|
%p.light
|
|
|
|
This url will be triggered when an issue is created/updated/merged
|
|
|
|
%div
|
|
|
|
= f.check_box :merge_requests_events, class: "pull-left"
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :merge_requests_events, class: "label-light append-bottom-0" do
|
|
|
|
Merge Request events
|
|
|
|
%p.light
|
|
|
|
This url will be triggered when a merge request is created/updated/merged
|
|
|
|
%div
|
|
|
|
= f.check_box :build_events, class: "pull-left"
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :build_events, class: "label-light append-bottom-0" do
|
|
|
|
Build events
|
|
|
|
%p.light
|
|
|
|
This url will be triggered when the build status changes
|
2016-05-12 23:25:33 -04:00
|
|
|
%div
|
|
|
|
= f.check_box :wiki_page_events, class: 'pull-left'
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :wiki_page_events, class: 'label-light append-bottom-0' do
|
2016-05-30 16:41:27 -04:00
|
|
|
Wiki Page events
|
2016-05-12 23:25:33 -04:00
|
|
|
%p.light
|
|
|
|
This url will be triggered when a wiki page is created/updated
|
2016-04-26 05:56:18 -04:00
|
|
|
.form-group
|
|
|
|
= f.label :enable_ssl_verification, "SSL verification", class: "label-light"
|
|
|
|
%div
|
|
|
|
= f.check_box :enable_ssl_verification, class: "pull-left"
|
|
|
|
.prepend-left-20
|
|
|
|
= f.label :enable_ssl_verification, class: "label-light append-bottom-0" do
|
|
|
|
Enable SSL verification
|
|
|
|
= f.submit "Add Webhook", class: "btn btn-create"
|
|
|
|
%hr
|
|
|
|
%h5.prepend-top-default
|
2016-03-10 14:48:29 -05:00
|
|
|
Webhooks (#{@hooks.count})
|
2016-04-26 05:56:18 -04:00
|
|
|
- if @hooks.any?
|
|
|
|
%ul.well-list
|
|
|
|
- @hooks.each do |hook|
|
|
|
|
= render "project_hook", hook: hook
|
|
|
|
- else
|
2016-05-16 10:40:44 -04:00
|
|
|
%p.settings-message.text-center.append-bottom-0
|
2016-04-26 05:56:18 -04:00
|
|
|
No webhooks found, add one in the form above.
|