diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-30 19:11:46 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-31 18:34:45 -0300 |
commit | 21f10af0956c69b6a5bad6b36b7d6e12e60e7867 (patch) | |
tree | b67fa1c084a144f89559e14b0be5c5a0e7421c76 /app/models/service.rb | |
parent | dd64f8aaf867516043dbbf559595a0ed9671ab3b (diff) | |
download | gitlab-ce-21f10af0956c69b6a5bad6b36b7d6e12e60e7867.tar.gz |
Scope hooks thal will run for confidential issues
Diffstat (limited to 'app/models/service.rb')
-rw-r--r-- | app/models/service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/service.rb b/app/models/service.rb index 7333f8d381b..198e7247838 100644 --- a/app/models/service.rb +++ b/app/models/service.rb @@ -34,6 +34,7 @@ class Service < ActiveRecord::Base scope :push_hooks, -> { where(push_events: true, active: true) } scope :tag_push_hooks, -> { where(tag_push_events: true, active: true) } scope :issue_hooks, -> { where(issues_events: true, active: true) } + scope :confidential_issue_hooks, -> { where(confidential_issues_events: true, active: true) } 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) } |