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

This commit is contained in:
Douglas Barbosa Alexandre 2016-08-30 16:25:28 -03:00
parent 52daddc0b7
commit 80c4f10937

View file

@ -152,6 +152,7 @@ module Gitlab
end
def create_comments(issuable, comments)
ActiveRecord::Base.no_touching do
comments.each do |raw|
begin
comment = CommentFormatter.new(project, raw)
@ -161,6 +162,7 @@ module Gitlab
end
end
end
end
def import_wiki
unless project.wiki_enabled?