diff options
author | Mario de la Ossa <mariodelaossa@gmail.com> | 2018-05-22 05:24:37 +0300 |
---|---|---|
committer | Mario de la Ossa <mariodelaossa@gmail.com> | 2018-06-03 03:44:31 +0300 |
commit | caadfcdee31237bbfbcfb304346fc4a5994295dd (patch) | |
tree | f60744f359c5b807277d6429fb8b4ef1db485807 /app/services/test_hooks | |
parent | fe0ebf76c49e2512b211c5d43152275c536f7e3a (diff) |
Backport changes in app/services/test_hooks/project_service.rb
Diffstat (limited to 'app/services/test_hooks')
-rw-r--r-- | app/services/test_hooks/project_service.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/test_hooks/project_service.rb b/app/services/test_hooks/project_service.rb index 01d5d774cd5..65183e84cce 100644 --- a/app/services/test_hooks/project_service.rb +++ b/app/services/test_hooks/project_service.rb @@ -1,11 +1,13 @@ module TestHooks class ProjectService < TestHooks::BaseService - private + attr_writer :project def project @project ||= hook.project end + private + def push_events_data throw(:validation_error, 'Ensure the project has at least one commit.') if project.empty_repo? |