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
1d0a0b9a
Commit
1d0a0b9a
authored
Apr 26, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a failing Rubocop rule on master
parent
8e7f4570
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
lib/github/import.rb
lib/github/import.rb
+21
-17
No files found.
lib/github/import.rb
View file @
1d0a0b9a
...
@@ -171,24 +171,28 @@ module Github
...
@@ -171,24 +171,28 @@ module Github
begin
begin
restore_branches
(
pull_request
)
restore_branches
(
pull_request
)
author_id
=
user_id
(
pull_request
.
author
,
project
.
creator_id
)
author_id
=
user_id
(
pull_request
.
author
,
project
.
creator_id
)
merge_request
.
iid
=
pull_request
.
iid
description
=
format_description
(
pull_request
.
description
,
pull_request
.
author
)
merge_request
.
title
=
pull_request
.
title
merge_request
.
description
=
format_description
(
pull_request
.
description
,
pull_request
.
author
)
merge_request
.
attributes
=
{
merge_request
.
source_project
=
pull_request
.
source_project
iid:
pull_request
.
iid
,
merge_request
.
source_branch
=
pull_request
.
source_branch_name
title:
pull_request
.
title
,
merge_request
.
source_branch_sha
=
pull_request
.
source_branch_sha
description:
description
,
merge_request
.
target_project
=
pull_request
.
target_project
source_project:
pull_request
.
source_project
,
merge_request
.
target_branch
=
pull_request
.
target_branch_name
source_branch:
pull_request
.
source_branch_name
,
merge_request
.
target_branch_sha
=
pull_request
.
target_branch_sha
source_branch_sha:
pull_request
.
source_branch_sha
,
merge_request
.
state
=
pull_request
.
state
target_project:
pull_request
.
target_project
,
merge_request
.
milestone_id
=
milestone_id
(
pull_request
.
milestone
)
target_branch:
pull_request
.
target_branch_name
,
merge_request
.
author_id
=
author_id
target_branch_sha:
pull_request
.
target_branch_sha
,
merge_request
.
assignee_id
=
user_id
(
pull_request
.
assignee
)
state:
pull_request
.
state
,
merge_request
.
created_at
=
pull_request
.
created_at
milestone_id:
milestone_id
(
pull_request
.
milestone
),
merge_request
.
updated_at
=
pull_request
.
updated_at
author_id:
author_id
,
merge_request
.
save!
(
validate:
false
)
assignee_id:
user_id
(
pull_request
.
assignee
),
created_at:
pull_request
.
created_at
,
updated_at:
pull_request
.
updated_at
}
merge_request
.
save!
(
validate:
false
)
merge_request
.
merge_request_diffs
.
create
merge_request
.
merge_request_diffs
.
create
# Fetch review comments
# Fetch review comments
...
...
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