简化工作流检查提示拼接
Project CI / Repository checks (pull_request) Failing after 12s
Project CI / Backend tests (pull_request) Failing after 10s
Project CI / Frontend tests (pull_request) Successful in 3m26s
Project CI / Native shell tests (pull_request) Successful in 20m41s

移除请检查文案探测逻辑
终态文案统一直接追加检查提示
This commit is contained in:
2026-09-04 16:09:19 +08:00
parent 7f3cf3b64b
commit fe813802a5
2 changed files with 1 additions and 5 deletions
@@ -9,7 +9,6 @@ export type WorkflowCompletionNotice = {
export function appendWorkflowCheckPrompt(message: string): string {
const trimmed = message.trim();
if (!trimmed) return '请检查。';
if (trimmed.includes('请检查')) return trimmed;
return `${trimmed.replace(/[!?]+$/u, '')}`;
}
@@ -6,13 +6,10 @@ import {
} from '../src/view/ui-editor/components/workflowCompletionNotice';
describe('workflow completion notice helpers', () => {
it('appends the review prompt without duplicating it', () => {
it('appends the review prompt to a terminal status', () => {
expect(appendWorkflowCheckPrompt('已应用 3 条建议。')).toBe(
'已应用 3 条建议,请检查。',
);
expect(appendWorkflowCheckPrompt('已应用 3 条建议,请检查。')).toBe(
'已应用 3 条建议,请检查。',
);
});
it('maps every workflow step to a user-facing label', () => {