Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-31 01:11:46 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-09-01 00:34:45 +0300
commit21f10af0956c69b6a5bad6b36b7d6e12e60e7867 (patch)
treeb67fa1c084a144f89559e14b0be5c5a0e7421c76 /app/models/hooks
parentdd64f8aaf867516043dbbf559595a0ed9671ab3b (diff)
Scope hooks thal will run for confidential issues
Diffstat (limited to 'app/models/hooks')
-rw-r--r--app/models/hooks/project_hook.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/hooks/project_hook.rb b/app/models/hooks/project_hook.rb
index 836a75b0608..c631e7a7df5 100644
--- a/app/models/hooks/project_hook.rb
+++ b/app/models/hooks/project_hook.rb
@@ -2,6 +2,7 @@ class ProjectHook < WebHook
belongs_to :project
scope :issue_hooks, -> { where(issues_events: true) }
+ scope :confidential_issue_hooks, -> { where(confidential_issues_events: true) }
scope :note_hooks, -> { where(note_events: true) }
scope :merge_request_hooks, -> { where(merge_requests_events: true) }
scope :build_hooks, -> { where(build_events: true) }