summaryrefslogtreecommitdiff
path: root/lib/api/commits.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-10-03 13:02:43 +0000
committerDouwe Maan <douwe@gitlab.com>2018-10-03 13:02:43 +0000
commit8672eac592dd14602f45af7e0541bc05e8629dc8 (patch)
treeea99ce595909549cfb2528a4d3c8561ff7508615 /lib/api/commits.rb
parent36898558600ff3e43c918eb3d96066934499b632 (diff)
parent1e662293e8fc2f2eba9657dd27449e966736a14a (diff)
downloadgitlab-ce-8672eac592dd14602f45af7e0541bc05e8629dc8.tar.gz
Merge branch '45016-add-web-ide-commits-to-usage-ping' into 'master'
Adds Web IDE commits to usage ping Closes #45016 See merge request gitlab-org/gitlab-ce!22007
Diffstat (limited to 'lib/api/commits.rb')
-rw-r--r--lib/api/commits.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/api/commits.rb b/lib/api/commits.rb
index f0db1318146..ff927d1aa3c 100644
--- a/lib/api/commits.rb
+++ b/lib/api/commits.rb
@@ -110,6 +110,9 @@ module API
if result[:status] == :success
commit_detail = user_project.repository.commit(result[:result])
+
+ Gitlab::WebIdeCommitsCounter.increment if find_user_from_warden
+
present commit_detail, with: Entities::CommitDetail
else
render_api_error!(result[:message], 400)