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:
authorGeorge Tsiolis <tsiolis.g@gmail.com>2019-03-06 18:22:45 +0300
committerGeorge Tsiolis <tsiolis.g@gmail.com>2019-03-07 13:13:34 +0300
commitbdae53060354c8ea525b8c9c5202d6097ee4dcc3 (patch)
treeeef5e16bf7aa60c74edb854999132c00db6bf1cd /lib/event_filter.rb
parentc2f180e72fff44516302ebb10f8b0a357463096b (diff)
Add hard coded event type filter
Diffstat (limited to 'lib/event_filter.rb')
-rw-r--r--lib/event_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/event_filter.rb b/lib/event_filter.rb
index 415e430a0c9..85bf9c14f26 100644
--- a/lib/event_filter.rb
+++ b/lib/event_filter.rb
@@ -33,7 +33,7 @@ class EventFilter
when TEAM
events.where(action: [Event::JOINED, Event::LEFT, Event::EXPIRED])
when ISSUE
- events.where(action: [Event::CREATED, Event::UPDATED, Event::CLOSED, Event::REOPENED], target_type: @filter.capitalize)
+ events.where(action: [Event::CREATED, Event::UPDATED, Event::CLOSED, Event::REOPENED], target_type: 'Issue')
else
events
end