summaryrefslogtreecommitdiff
path: root/lib/api/commit_statuses.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-11 17:26:04 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-08-11 17:26:04 +0800
commit4b559c9afb34b80b910efec514653c6ea65adba8 (patch)
tree7470c474011876afc98770617c22eec0b1dbe3b4 /lib/api/commit_statuses.rb
parent517249858e41694f51b67461b313d5a34c2a466c (diff)
downloadgitlab-ce-4b559c9afb34b80b910efec514653c6ea65adba8.tar.gz
Reverse ref and sha in args and rename pipeline to pipeline_for
Diffstat (limited to 'lib/api/commit_statuses.rb')
-rw-r--r--lib/api/commit_statuses.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commit_statuses.rb b/lib/api/commit_statuses.rb
index 4df6ca8333e..5e3c9563703 100644
--- a/lib/api/commit_statuses.rb
+++ b/lib/api/commit_statuses.rb
@@ -64,7 +64,7 @@ module API
ref = branches.first
end
- pipeline = @project.ensure_pipeline(commit.sha, ref, current_user)
+ pipeline = @project.ensure_pipeline(ref, commit.sha, current_user)
name = params[:name] || params[:context]
status = GenericCommitStatus.running_or_pending.find_by(pipeline: pipeline, name: name, ref: params[:ref])