Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
253d7451
Commit
253d7451
authored
May 05, 2017
by
Gabriel Mazetto
Committed by
Robert Speicher
May 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add backward compatible Geo API support for new SystemHook event
parent
1d880b4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/services/geo/schedule_repo_fetch_service.rb
app/services/geo/schedule_repo_fetch_service.rb
+1
-1
lib/api/geo.rb
lib/api/geo.rb
+1
-1
No files found.
app/services/geo/schedule_repo_fetch_service.rb
View file @
253d7451
...
@@ -2,7 +2,7 @@ module Geo
...
@@ -2,7 +2,7 @@ module Geo
class
ScheduleRepoFetchService
class
ScheduleRepoFetchService
def
initialize
(
params
)
def
initialize
(
params
)
@project_id
=
params
[
:project_id
]
@project_id
=
params
[
:project_id
]
@remote_url
=
params
[
:
remote
_url
]
@remote_url
=
params
[
:
project
][
:git_ssh
_url
]
end
end
def
execute
def
execute
...
...
lib/api/geo.rb
View file @
253d7451
...
@@ -66,7 +66,7 @@ module API
...
@@ -66,7 +66,7 @@ module API
required_attributes!
%w(key id)
required_attributes!
%w(key id)
::
Geo
::
ScheduleKeyChangeService
.
new
(
params
).
execute
::
Geo
::
ScheduleKeyChangeService
.
new
(
params
).
execute
when
'repository_update'
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
::
Geo
::
ScheduleRepoFetchService
.
new
(
params
).
execute
when
'push'
when
'push'
required_attributes!
%w(event_name project_id project)
required_attributes!
%w(event_name project_id project)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment