Add additional validation to push event
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
467e4e81f4
commit
31239d116a
|
@ -168,7 +168,7 @@ class Event < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def valid_push?
|
||||
data[:ref]
|
||||
data[:ref] && ref_name.present?
|
||||
rescue => ex
|
||||
false
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue