Commit 253d7451 authored by Gabriel Mazetto's avatar Gabriel Mazetto Committed by Robert Speicher

Add backward compatible Geo API support for new SystemHook event

parent 1d880b4b
......@@ -2,7 +2,7 @@ module Geo
class ScheduleRepoFetchService
def initialize(params)
@project_id = params[:project_id]
@remote_url = params[:remote_url]
@remote_url = params[:project][:git_ssh_url]
end
def execute
......
......@@ -66,7 +66,7 @@ module API
required_attributes! %w(key id)
::Geo::ScheduleKeyChangeService.new(params).execute
when 'repository_update'
required_attributes! %w(event_name project_id remote_url)
required_attributes! %w(event_name project_id project)
::Geo::ScheduleRepoFetchService.new(params).execute
when 'push'
required_attributes! %w(event_name project_id project)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment