Skip creating the merge request if repo is empty

This commit is contained in:
Lin Jen-Shin 2017-08-11 23:27:42 +08:00
parent 3b0dcbf235
commit ba8321a52a
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ Gitlab::Seeder.quiet do
project = Project.find_by_full_path('gitlab-org/gitlab-test')
next if project.empty_repo? # We don't have repository on CI
params = {
source_branch: 'feature',
target_branch: 'master',