feat: 更新文件摘要表格中的分隔符转义
All checks were successful
CI Monitor MIflow / build-image (push) Successful in 1m47s

This commit is contained in:
zhaoyingbo 2024-08-14 01:37:43 +00:00
parent 878532997b
commit 4c3acbb787
3 changed files with 6 additions and 3 deletions

View File

@ -156,7 +156,10 @@ ${summarizedMr}
| | | | | |
| --- | --- | | --- | --- |
${[...summarizedFileMap] ${[...summarizedFileMap]
.map(([path, summary]) => `| \`${shortenPath(path)}\` | ${summary} |`) .map(
([path, summary]) =>
`| \`${shortenPath(path)}\` | ${summary.replaceAll("|", "\\|")} |`
)
.join("\n")} .join("\n")}
` `
this.logger.debug(`Summarized comment: ${summarizedComment}`) this.logger.debug(`Summarized comment: ${summarizedComment}`)

View File

@ -3,7 +3,7 @@
"module": "index.ts", "module": "index.ts",
"type": "module", "type": "module",
"scripts": { "scripts": {
"start": "bun run index.ts", "start": "NODE_ENV=production bun run index.ts",
"dev": "NODE_ENV=dev bun run index.ts --watch", "dev": "NODE_ENV=dev bun run index.ts --watch",
"lint": "eslint --fix .", "lint": "eslint --fix .",
"prepare": "husky", "prepare": "husky",

View File

@ -18,7 +18,7 @@ test("manageMrEvent", async () => {
id: 139032, id: 139032,
}, },
object_attributes: { object_attributes: {
iid: 502, iid: 505,
state: "opened", state: "opened",
}, },
} }