diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-10 15:06:07 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-10 15:06:07 +0000 |
commit | d96abbee0b394ac40eb67253214fb9c41a31bd41 (patch) | |
tree | 4887c6f08cc902c79e2a31d21a85ce7909cf88bc /lib/gitlab/github_import/importer/releases_importer.rb | |
parent | 69849c280c5525d132ebaddb1200c390a42ecc06 (diff) | |
download | gitlab-ce-d96abbee0b394ac40eb67253214fb9c41a31bd41.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/github_import/importer/releases_importer.rb')
-rw-r--r-- | lib/gitlab/github_import/importer/releases_importer.rb | 3 |
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 |