fix(web): 兼容 CI/CD context 中 workflow 和 workflow_name 两种字段名
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 1m7s
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 1m7s
rtc_backend 用 workflow,旧项目用 workflow_name,前端需同时兼容 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
89f19e9776
commit
ac73c6cd31
@ -306,11 +306,11 @@ export default function BugDetail() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{bug.source === 'cicd' && bug.context?.workflow_name && (
|
||||
{bug.source === 'cicd' && (bug.context?.workflow_name || bug.context?.workflow) && (
|
||||
<div className="detail-section">
|
||||
<div className="detail-section-title">CI/CD 信息</div>
|
||||
<div className="detail-section-value">
|
||||
工作流:{bug.context.workflow_name} / {bug.context.job_name} / {bug.context.step_name}
|
||||
工作流:{bug.context.workflow_name || bug.context.workflow} / {bug.context.job_name} / {bug.context.step_name}
|
||||
{bug.context.branch && <><br />分支:{bug.context.branch}</>}
|
||||
{bug.context.run_url && (
|
||||
<><br /><a href={bug.context.run_url} target="_blank" rel="noopener noreferrer">查看 CI 日志</a></>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user