diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-12 09:52:34 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-12 09:52:34 +0200 |
commit | 56318a24b1f7c07f7fe5d3fd23bf7d26c0240a87 (patch) | |
tree | 64efa32672bfc9261c1c277ecc694a32ef92436d /app/models | |
parent | cc57a25c39855933435e0ff9bf462474e1224109 (diff) | |
parent | e6ceec9d60b9fe5eaec8faf777307f39bd4b1fa3 (diff) | |
download | gitlab-ce-56318a24b1f7c07f7fe5d3fd23bf7d26c0240a87.tar.gz |
Merge pull request #6474 from jvanbaarsen/post-tag-hook
Add web hooks on tag
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project_hook.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/project_hook.rb b/app/models/project_hook.rb index e1c9ed01bc5..4e9b22532cb 100644 --- a/app/models/project_hook.rb +++ b/app/models/project_hook.rb @@ -17,9 +17,10 @@ class ProjectHook < WebHook belongs_to :project - attr_accessible :push_events, :issues_events, :merge_requests_events + attr_accessible :push_events, :issues_events, :merge_requests_events, :tag_push_events scope :push_hooks, -> { where(push_events: true) } + scope :tag_push_hooks, -> { where(tag_push_events: true) } scope :issue_hooks, -> { where(issues_events: true) } scope :merge_request_hooks, -> { where(merge_requests_events: true) } end |