diff options
author | Hiroyuki Sato <sathiroyuki@gmail.com> | 2019-01-28 08:54:33 +0300 |
---|---|---|
committer | Hiroyuki Sato <sathiroyuki@gmail.com> | 2019-01-28 09:38:15 +0300 |
commit | 74946c19b4056052da4f5a9059ae73b2c0771d03 (patch) | |
tree | db19d52436443538ab6ab146d574866f85d79fd4 /app/services/merge_requests/base_service.rb | |
parent | ba0509ed9dfd8db4b0faa1c34e3dc2735fa85aa3 (diff) |
Move validation logic to service layer
Diffstat (limited to 'app/services/merge_requests/base_service.rb')
-rw-r--r-- | app/services/merge_requests/base_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/merge_requests/base_service.rb b/app/services/merge_requests/base_service.rb index fe19abf50f6..ac51fee0b3f 100644 --- a/app/services/merge_requests/base_service.rb +++ b/app/services/merge_requests/base_service.rb @@ -63,6 +63,7 @@ module MergeRequests # UpdateMergeRequestsWorker could be retried by an exception. # MR pipelines should not be recreated in such case. return if merge_request.merge_request_pipeline_exists? + return if merge_request.has_no_commits? Ci::CreatePipelineService .new(merge_request.source_project, user, ref: merge_request.source_branch) |