summaryrefslogtreecommitdiff
path: root/lib/ci/api/commits.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ci/api/commits.rb')
-rw-r--r--lib/ci/api/commits.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci/api/commits.rb b/lib/ci/api/commits.rb
index bac463a5909..6a5b52b17de 100644
--- a/lib/ci/api/commits.rb
+++ b/lib/ci/api/commits.rb
@@ -51,7 +51,7 @@ module Ci
required_attributes! [:project_id, :data, :project_token]
project = Ci::Project.find(params[:project_id])
authenticate_project_token!(project)
- commit = Ci::CreateCommitService.new.execute(project, params[:data])
+ commit = Ci::CreateCommitService.new.execute(project, params[:data], current_user)
if commit.persisted?
present commit, with: Entities::CommitWithBuilds