fix(web): 兼容 CI/CD context 中 workflow 和 workflow_name 两种字段名
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:
zyc 2026-02-26 10:19:15 +08:00
parent 89f19e9776
commit ac73c6cd31

View File

@ -306,11 +306,11 @@ export default function BugDetail() {
</div> </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">
<div className="detail-section-title">CI/CD </div> <div className="detail-section-title">CI/CD </div>
<div className="detail-section-value"> <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.branch && <><br />{bug.context.branch}</>}
{bug.context.run_url && ( {bug.context.run_url && (
<><br /><a href={bug.context.run_url} target="_blank" rel="noopener noreferrer"> CI </a></> <><br /><a href={bug.context.run_url} target="_blank" rel="noopener noreferrer"> CI </a></>