Don't touch Issue/Merge Request when importing GitHub comments
This commit is contained in:
parent
52daddc0b7
commit
80c4f10937
1 changed files with 8 additions and 6 deletions
|
@ -152,6 +152,7 @@ module Gitlab
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_comments(issuable, comments)
|
def create_comments(issuable, comments)
|
||||||
|
ActiveRecord::Base.no_touching do
|
||||||
comments.each do |raw|
|
comments.each do |raw|
|
||||||
begin
|
begin
|
||||||
comment = CommentFormatter.new(project, raw)
|
comment = CommentFormatter.new(project, raw)
|
||||||
|
@ -161,6 +162,7 @@ module Gitlab
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def import_wiki
|
def import_wiki
|
||||||
unless project.wiki_enabled?
|
unless project.wiki_enabled?
|
||||||
|
|
Loading…
Reference in a new issue