summaryrefslogtreecommitdiff
path: root/app/models/service.rb
diff options
context:
space:
mode:
authorSebastian Klier <sebastian@sebastianklier.com>2016-02-28 15:26:52 +0800
committerSebastian Klier <sebastian@sebastianklier.com>2016-04-20 08:25:40 +0800
commit54661d3d44a7d98ed52680b074b2caed7aa33676 (patch)
treeb55ca87853bebdd44e8039b04f959a6d07f5213d /app/models/service.rb
parent9617c274ab301e4d2401b2d9a179f40649259d3c (diff)
downloadgitlab-ce-54661d3d44a7d98ed52680b074b2caed7aa33676.tar.gz
add slack notifications for wiki pages
update changelog
Diffstat (limited to 'app/models/service.rb')
-rw-r--r--app/models/service.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/service.rb b/app/models/service.rb
index 721273250ea..2645b8321d7 100644
--- a/app/models/service.rb
+++ b/app/models/service.rb
@@ -32,6 +32,7 @@ class Service < ActiveRecord::Base
default_value_for :tag_push_events, true
default_value_for :note_events, true
default_value_for :build_events, true
+ default_value_for :wiki_page_events, true
after_initialize :initialize_properties
@@ -53,6 +54,7 @@ class Service < ActiveRecord::Base
scope :merge_request_hooks, -> { where(merge_requests_events: true, active: true) }
scope :note_hooks, -> { where(note_events: true, active: true) }
scope :build_hooks, -> { where(build_events: true, active: true) }
+ scope :wiki_page_hooks, -> { where(wiki_page_events: true, active: true) }
default_value_for :category, 'common'
@@ -94,7 +96,7 @@ class Service < ActiveRecord::Base
end
def supported_events
- %w(push tag_push issue merge_request)
+ %w(push tag_push issue merge_request wiki_page)
end
def execute(data)