diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-10-03 13:02:43 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-10-03 13:02:43 +0000 |
commit | 8672eac592dd14602f45af7e0541bc05e8629dc8 (patch) | |
tree | ea99ce595909549cfb2528a4d3c8561ff7508615 /lib/api/commits.rb | |
parent | 36898558600ff3e43c918eb3d96066934499b632 (diff) | |
parent | 1e662293e8fc2f2eba9657dd27449e966736a14a (diff) | |
download | gitlab-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.rb | 3 |
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) |