BigW Consortium Gitlab

Commit e51d4a05 by Lin Jen-Shin

We should actually give latest success builds as well

parent af86b8c2
......@@ -432,7 +432,7 @@ class Project < ActiveRecord::Base
def latest_success_builds_for(ref = 'HEAD')
Ci::Build.joins(:pipeline).
merge(pipelines.where(ref: ref).success.latest).
with_artifacts
with_artifacts.success.latest
end
def merge_base_commit(first_commit_id, second_commit_id)
......
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