Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-10 18:06:07 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-10 18:06:07 +0300
commitd96abbee0b394ac40eb67253214fb9c41a31bd41 (patch)
tree4887c6f08cc902c79e2a31d21a85ce7909cf88bc /lib/gitlab/github_import
parent69849c280c5525d132ebaddb1200c390a42ecc06 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/github_import')
-rw-r--r--lib/gitlab/github_import/importer/releases_importer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/github_import/importer/releases_importer.rb b/lib/gitlab/github_import/importer/releases_importer.rb
index 1881f715c99..a3734ccf069 100644
--- a/lib/gitlab/github_import/importer/releases_importer.rb
+++ b/lib/gitlab/github_import/importer/releases_importer.rb
@@ -37,7 +37,8 @@ module Gitlab
description: description_for(release),
created_at: release.created_at,
updated_at: release.created_at,
- released_at: release.published_at,
+ # Draft releases will have a null published_at
+ released_at: release.published_at || Time.current,
project_id: project.id
}
end