Skip to content
Snippets Groups Projects
Commit 09114211 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files
parent 04658761
No related branches found
No related tags found
No related merge requests found
Loading
@@ -431,8 +431,7 @@ class Project < ActiveRecord::Base
Loading
@@ -431,8 +431,7 @@ class Project < ActiveRecord::Base
   
# ref can't be HEAD, can only be branch/tag name or SHA # ref can't be HEAD, can only be branch/tag name or SHA
def latest_successful_builds_for(ref = default_branch) def latest_successful_builds_for(ref = default_branch)
Ci::Build.joins(:pipeline). builds.where(pipeline: pipelines.latest_successful_for(ref)).
merge(pipelines.latest_successful_for(ref)).
latest_successful_with_artifacts latest_successful_with_artifacts
end end
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment