Fix Drone web hook URL not being updated

This commit is contained in:
Stan Hu 2015-11-20 08:13:25 -08:00
parent b3cd7243e9
commit ad1f451f24

View file

@ -32,6 +32,8 @@ class DroneCiService < CiService
def compose_service_hook
hook = service_hook || build_service_hook
# If using a service template, project may not be available
hook.url = [drone_url, "/api/hook", "?owner=#{project.namespace.path}", "&name=#{project.path}", "&access_token=#{token}"].join if project
hook.enable_ssl_verification = enable_ssl_verification
hook.save
end