From deeff56967516764b287e15b2063899b13395b41 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Fri, 15 May 2015 23:33:31 -0700 Subject: Add support for Webhook note events Closes https://github.com/gitlabhq/gitlabhq/issues/6745 --- app/views/projects/hooks/index.html.haml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/projects/hooks/index.html.haml b/app/views/projects/hooks/index.html.haml index 808c03148f4..eadbf61fdd4 100644 --- a/app/views/projects/hooks/index.html.haml +++ b/app/views/projects/hooks/index.html.haml @@ -34,6 +34,13 @@ %strong 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: 'list-label' do + %strong 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 @@ -64,6 +71,6 @@ .clearfix %span.monospace= hook.url %p - - %w(push_events tag_push_events issues_events merge_requests_events).each do |trigger| + - %w(push_events tag_push_events issues_events note_events merge_requests_events).each do |trigger| - if hook.send(trigger) %span.label.label-gray= trigger.titleize -- cgit v1.2.1