diff options
author | Tommy Beadle <tbeadle@gmail.com> | 2016-08-08 16:31:35 +0300 |
---|---|---|
committer | Tommy Beadle <tbeadle@gmail.com> | 2017-01-26 17:09:14 +0300 |
commit | 0de335eced588912b98bc2a723b297afb9650fd5 (patch) | |
tree | 45c6287f3c95446481f457815e623433cee56d2c /app | |
parent | a1c27c2030473f0a9769d680bf2efe327396333e (diff) |
Add a system hook for when a project is updated.
This sends a project_update hook when a repo is updated. This does not include
renaming or transferring a project. Those are covered by project_rename and
project_transfer. This will get called, however, when the visibility is
changed.
Diffstat (limited to 'app')
-rw-r--r-- | app/services/projects/update_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/projects/update_service.rb b/app/services/projects/update_service.rb index 842e23eb6b6..55d9cb13ae4 100644 --- a/app/services/projects/update_service.rb +++ b/app/services/projects/update_service.rb @@ -22,6 +22,8 @@ module Projects if project.update_attributes(params.except(:default_branch)) if project.previous_changes.include?('path') project.rename_repo + else + system_hook_service.execute_hooks_for(project, :update) end success |