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
def import!
@project.force_import_start
import_success = false
timings = Benchmark.measure do
Github::Import.new(@project, @options).execute
import_success = Github::Import.new(@project, @options).execute
end
puts "Import finished. Timings: #{timings}".color(:green)
if import_success
@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
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