We should actually give latest success builds as well
This commit is contained in:
parent
af86b8c2c2
commit
e51d4a05b7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue