mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-23 03:26:07 +10:00
Merge pull request #9059 from chulkilee/fix-hipchat
do not send empty message to hipchat
This commit is contained in:
@@ -11,6 +11,7 @@ v 7.11.0 (unreleased)
|
||||
-
|
||||
-
|
||||
- Improve new project command options (Ben Bodenmiller)
|
||||
- Prevent sending empty messages to HipChat (Chulki Lee)
|
||||
|
||||
v 7.10.0 (unreleased)
|
||||
- Ignore submodules that are defined in .gitmodules but are checked in as directories.
|
||||
|
||||
@@ -50,8 +50,9 @@ class HipchatService < Service
|
||||
|
||||
def execute(data)
|
||||
return unless supported_events.include?(data[:object_kind])
|
||||
|
||||
gate[room].send('GitLab', create_message(data))
|
||||
message = create_message(data)
|
||||
return unless message.present?
|
||||
gate[room].send('GitLab', message)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user