Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
2b304239
Commit
2b304239
authored
Aug 09, 2019
by
Cindy Pallares 🦉
Committed by
Mayra Cabrera
Aug 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a field for released_at to GH importer
parent
136c3efe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
changelogs/unreleased/add-release-to-github-importer.yml
changelogs/unreleased/add-release-to-github-importer.yml
+5
-0
lib/gitlab/github_import/importer/releases_importer.rb
lib/gitlab/github_import/importer/releases_importer.rb
+1
-0
spec/lib/gitlab/github_import/importer/releases_importer_spec.rb
...b/gitlab/github_import/importer/releases_importer_spec.rb
+5
-2
No files found.
changelogs/unreleased/add-release-to-github-importer.yml
0 → 100644
View file @
2b304239
---
title
:
Add a field for released_at to GH importer
merge_request
:
31496
author
:
type
:
fixed
lib/gitlab/github_import/importer/releases_importer.rb
View file @
2b304239
...
...
@@ -36,6 +36,7 @@ module Gitlab
description:
description_for
(
release
),
created_at:
release
.
created_at
,
updated_at:
release
.
updated_at
,
released_at:
release
.
published_at
,
project_id:
project
.
id
}
end
...
...
spec/lib/gitlab/github_import/importer/releases_importer_spec.rb
View file @
2b304239
...
...
@@ -6,6 +6,7 @@ describe Gitlab::GithubImport::Importer::ReleasesImporter do
let
(
:importer
)
{
described_class
.
new
(
project
,
client
)
}
let
(
:created_at
)
{
Time
.
new
(
2017
,
1
,
1
,
12
,
00
)
}
let
(
:updated_at
)
{
Time
.
new
(
2017
,
1
,
1
,
12
,
15
)
}
let
(
:released_at
)
{
Time
.
new
(
2017
,
1
,
1
,
12
,
00
)
}
let
(
:release
)
do
double
(
...
...
@@ -13,7 +14,8 @@ describe Gitlab::GithubImport::Importer::ReleasesImporter do
tag_name:
'1.0'
,
body:
'This is my release'
,
created_at:
created_at
,
updated_at:
updated_at
updated_at:
updated_at
,
published_at:
released_at
)
end
...
...
@@ -23,7 +25,8 @@ describe Gitlab::GithubImport::Importer::ReleasesImporter do
tag_name:
'1.0'
,
description:
'This is my release'
,
created_at:
created_at
,
updated_at:
updated_at
updated_at:
updated_at
,
released_at:
released_at
}
expect
(
importer
).
to
receive
(
:build_releases
).
and_return
([
release_hash
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment