Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
2189e828fa84
Commit
b8bf2834
authored
Nov 17, 2016
by
Stan Hu
Browse files
Rubocop fixes
parent
ce4e30dc8ed8
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/bitbucket/page.rb
View file @
2189e828
...
...
@@ -29,7 +29,7 @@ def parse_values(raw, representation_class)
end
def
representation_class
(
type
)
class_name
=
Bitbucket
::
Representation
.
const_get
(
type
.
to_s
.
camelize
)
Bitbucket
::
Representation
.
const_get
(
type
.
to_s
.
camelize
)
end
end
end
lib/gitlab/bitbucket_import/importer.rb
View file @
2189e828
...
...
@@ -139,7 +139,7 @@ def import_inline_comments(inline_comments, pull_request, merge_request)
line_code:
line_code_map
.
fetch
(
comment
.
iid
),
type:
'LegacyDiffNote'
)
note
=
merge_request
.
notes
.
create!
(
attributes
)
merge_request
.
notes
.
create!
(
attributes
)
rescue
ActiveRecord
::
RecordInvalid
=>
e
Rails
.
log
.
error
(
"Bitbucket importer ERROR: Invalid pull request comment
#{
e
.
message
}
"
)
nil
...
...
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