diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-03 13:34:03 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-03 13:34:03 +0200 |
commit | 08baa9983ee586c10b4fa28f68b10ba8e7807125 (patch) | |
tree | 4c9fe02b24c3896058ee34bb3157da0cd16f479e /lib/api/builds.rb | |
parent | 0a51c954641c99610e9eddd9323398fb00d273e2 (diff) | |
download | gitlab-ce-08baa9983ee586c10b4fa28f68b10ba8e7807125.tar.gz |
Use pipelines in context of Project
Diffstat (limited to 'lib/api/builds.rb')
-rw-r--r-- | lib/api/builds.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/builds.rb b/lib/api/builds.rb index 2b104f90aa7..0ff8fa74a84 100644 --- a/lib/api/builds.rb +++ b/lib/api/builds.rb @@ -33,7 +33,7 @@ module API get ':id/repository/commits/:sha/builds' do authorize_read_builds! - commit = user_project.ci_commits.find_by_sha(params[:sha]) + commit = user_project.pipelines.find_by_sha(params[:sha]) return not_found! unless commit builds = commit.builds.order('id DESC') |