diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-10-05 10:14:33 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-10-05 10:15:40 +0200 |
commit | e3d870d7fc282a1f0a1028996c8b44e5d32b9cbf (patch) | |
tree | 578278b2435415d6684073bafea9d08d24fcf17f /lib | |
parent | 546a3c6561fbe967cc37ccc3229b71893cd20c34 (diff) | |
download | gitlab-ce-e3d870d7fc282a1f0a1028996c8b44e5d32b9cbf.tar.gz |
Add user to Ci::Build to have pusher email address
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ci/api/commits.rb | 2 |
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 |