Don't touch Issue/Merge Request when importing GitHub comments

parent 52daddc0
...@@ -152,6 +152,7 @@ module Gitlab ...@@ -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 ...@@ -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?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment