Commit 80e4fee7 authored by Rémy Coutable's avatar Rémy Coutable

Don't mark the import as finished if it wasn't successful in the `import:github` task

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 37cdde19
...@@ -39,13 +39,19 @@ class GithubImport ...@@ -39,13 +39,19 @@ class GithubImport
def import! def import!
@project.force_import_start @project.force_import_start
import_success = false
timings = Benchmark.measure do timings = Benchmark.measure do
Github::Import.new(@project, @options).execute import_success = Github::Import.new(@project, @options).execute
end end
puts "Import finished. Timings: #{timings}".color(:green) if import_success
@project.import_finish
@project.import_finish puts "Import finished. Timings: #{timings}".color(:green)
else
puts "Import was not successful. Errors were as follows:"
puts @project.import_error
end
end end
def new_project def new_project
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment