Commit 94f01caa authored by Gabriel Mazetto's avatar Gabriel Mazetto 🚀

Fix backfill by sending the new hook type

parent b671e84f
Pipeline #6266509 failed with stages
in 111 minutes and 35 seconds
......@@ -15,9 +15,10 @@ module Geo
def hook_data
{
event_name: 'push',
event_name: 'repository_update',
project_id: project.id,
project: project.hook_attrs
project: project.hook_attrs,
remote_url: project.ssh_url_to_repo
}
end
end
......
---
title: 'Geo: send the new event type with the backfill function'
merge_request: 1157
author:
......@@ -17,9 +17,10 @@ describe Geo::RepositoryBackfillService, services: true do
expect(WebMock).to have_requested(:post, geo_node.geo_events_url).with(
headers: SYSTEM_HOOKS_HEADER,
body: {
event_name: 'push',
event_name: 'repository_update',
project_id: project.id,
project: project.hook_attrs
project: project.hook_attrs,
remote_url: project.ssh_url_to_repo
}
).once
end
......
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