更改:流水线等待开始时间显示以及合并请求更新需输入标记移除

This commit is contained in:
yystopf 2025-11-05 11:30:53 +08:00
parent d6c3c56658
commit 6ec77f5e90
2 changed files with 3 additions and 3 deletions

View File

@ -99,8 +99,8 @@ class PullRequestsController < ApplicationController
return render_forbidden("你没有权限操作.") unless @project.operator?(current_user)
if params[:title].nil?
normal_status(-1, "名称不能为空")
elsif params[:issue_tag_ids].nil?
normal_status(-1, "标记不能为空")
# elsif params[:issue_tag_ids].nil?
# normal_status(-1, "标记不能为空")
else
ActiveRecord::Base.transaction do
begin

View File

@ -18,7 +18,7 @@ if @has_file
json.status run["Status"]
json.detail_status @result_object[:data]["DetailStatusList"].select{|s| s["RunID"] == run["ID"]}[0].present? ? @result_object[:data]["DetailStatusList"].select{|s| s["RunID"] == run["ID"]}[0]["Status"].sort![0] : run["Status"]
json.time_ago time_from_now(run["Started"])
json.time_ago run["Started"].zero? ? "未开始" : time_from_now(run["Started"])
json.started run["Started"]
json.holding_time run["Status"] == 6 ? Time.now.to_i - run["Started"] : run["Stopped"] - run["Started"]
end