From b30bc625fde67f42e87c877628b71fc3c1046a68 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Wed, 10 Jul 2024 14:46:36 +0800 Subject: [PATCH] chore(bot): optimize comment content (#4856) * chore(bot): optimize comment content * fix: use String.replace instead of String.replaceAll * chore: add continue-on-error * fix: fix syntax error --- .github/workflows/e2e.yml | 2 +- lerna.json | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index f3da6d2ae1..f48dc2a1b8 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -483,7 +483,7 @@ jobs: const mergeWorkflowUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`; const reportMd = await fs.promises.readFile('report.md', 'utf8'); function formatComment(lines) { - let body = lines.join('\n'); + let body = lines.map(item => item.replace(/__e2e__/g, '\_\_e2e\_\_')).join('\n'); if (body.length > 65535) body = body.substring(0, 65000) + `... ${body.length - 65000} more characters`; return body; diff --git a/lerna.json b/lerna.json index 7ecf1e6e82..4c25ca1e52 100644 --- a/lerna.json +++ b/lerna.json @@ -2,9 +2,7 @@ "version": "1.2.13-alpha", "npmClient": "yarn", "useWorkspaces": true, - "npmClientArgs": [ - "--ignore-engines" - ], + "npmClientArgs": ["--ignore-engines"], "command": { "version": { "forcePublish": true,