Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
6ddd4594
Commit
6ddd4594
authored
Mar 04, 2015
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Irker service use the supported events check
parent
63178a95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
app/models/project_services/irker_service.rb
app/models/project_services/irker_service.rb
+8
-2
No files found.
app/models/project_services/irker_service.rb
View file @
6ddd4594
...
@@ -63,9 +63,15 @@ class IrkerService < Service
...
@@ -63,9 +63,15 @@ class IrkerService < Service
'irker'
'irker'
end
end
def
execute
(
push_data
)
def
supported_events
%w(push)
end
def
execute
(
data
)
return
unless
supported_events
.
include?
(
data
[
:object_kind
])
IrkerWorker
.
perform_async
(
project_id
,
channels
,
IrkerWorker
.
perform_async
(
project_id
,
channels
,
colorize_messages
,
push_
data
,
@settings
)
colorize_messages
,
data
,
@settings
)
end
end
def
fields
def
fields
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment