commit
511d07c47c
5 changed files with 67 additions and 11 deletions
|
@ -101,6 +101,9 @@ module Project::HooksTrait
|
|||
|
||||
# Execute web hooks
|
||||
self.execute_web_hooks(oldrev, newrev, ref, user)
|
||||
|
||||
# Create satellite
|
||||
self.satellite.create unless self.satellite.exists?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -37,6 +37,10 @@ module Project::RepositoryTrait
|
|||
end
|
||||
end
|
||||
|
||||
def satellite
|
||||
@satellite ||= Gitlabhq::Satellite.new(self)
|
||||
end
|
||||
|
||||
def write_hook(name, content)
|
||||
hook_file = File.join(path_to_repo, 'hooks', name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue