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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
6214b80b
Commit
6214b80b
authored
Apr 27, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly fix the RuboCop offense
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
3bf08845
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lib/github/import.rb
lib/github/import.rb
+6
-3
No files found.
lib/github/import.rb
View file @
6214b80b
...
...
@@ -171,10 +171,13 @@ module Github
begin
restore_branches
(
pull_request
)
author_id
=
user_id
(
pull_request
.
author
,
project
.
creator_id
)
description
=
format_description
(
pull_request
.
description
,
pull_request
.
author
)
merge_request
.
attributes
=
{
iid:
pull_request
.
iid
,
title:
pull_request
.
title
,
description:
format_description
(
pull_request
.
description
,
pull_request
.
author
)
,
description:
description
,
source_project:
pull_request
.
source_project
,
source_branch:
pull_request
.
source_branch_name
,
source_branch_sha:
pull_request
.
source_branch_sha
,
...
...
@@ -183,13 +186,13 @@ module Github
target_branch_sha:
pull_request
.
target_branch_sha
,
state:
pull_request
.
state
,
milestone_id:
milestone_id
(
pull_request
.
milestone
),
author_id:
user_id
(
pull_request
.
author
,
project
.
creator_id
)
,
author_id:
author_id
,
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
.
save!
(
validate:
false
)
merge_request
.
merge_request_diffs
.
create
# 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