Commit 1fb38cee authored by Robert Speicher's avatar Robert Speicher

Merge branch 'fix-broken-master' into 'master'

Use new method name

Closes #13088

See merge request gitlab-org/gitlab-ee!14871
parents d536f03f 812f182a
......@@ -40,7 +40,7 @@ module Projects
end
def pipeline
@pipeline ||= project.all_pipelines.latest_successful_for(project.default_branch)
@pipeline ||= project.all_pipelines.latest_successful_for_ref(project.default_branch)
end
def query_params
......
......@@ -4,7 +4,7 @@ module API
class Dependencies < Grape::API
helpers do
def dependencies_by(params)
pipeline = user_project.all_pipelines.latest_successful_for(user_project.default_branch)
pipeline = user_project.all_pipelines.latest_successful_for_ref(user_project.default_branch)
return [] unless pipeline
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment