mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
流水线列表查询
This commit is contained in:
@@ -12,7 +12,7 @@ class Ci::PipelinesController < Ci::BaseController
|
||||
# 查询build状态
|
||||
list.collect do |pipeline|
|
||||
pipeline.last_build_time = nil
|
||||
repo = load_repo_by_repo_slug("#{pipeline.login}/#{pipeline.identifier}")
|
||||
repo = load_repo_by_repo_slug("#{pipeline.owner}/#{pipeline.identifier}")
|
||||
if repo
|
||||
build = repo.builds.order("build_created desc").find_by(build_target: pipeline.branch)
|
||||
if build
|
||||
|
||||
Reference in New Issue
Block a user