Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-05-11 01:41:46 +0300
committerDouwe Maan <douwe@selenight.nl>2016-05-14 01:31:43 +0300
commit99d3e21f19ffb5cccb58fdfeac4fb6174e7e65e2 (patch)
tree3dae33d98b9688a3f7e9a4c923f555920d86652b /lib/api/commits.rb
parent5e130c3e39febcd577e61ebd30bd231827d41f2c (diff)
Extract LegacyDiffNote out of Note
Diffstat (limited to 'lib/api/commits.rb')
-rw-r--r--lib/api/commits.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/commits.rb b/lib/api/commits.rb
index 93a3a5ce089..4a11c8e3620 100644
--- a/lib/api/commits.rb
+++ b/lib/api/commits.rb
@@ -107,6 +107,8 @@ module API
break if opts[:line_code]
end
+
+ opts[:type] = LegacyDiffNote.name if opts[:line_code]
end
note = ::Notes::CreateService.new(user_project, current_user, opts).execute