From ad35d90e253fc9a05895984add760e4433584d0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=89=E8=90=81?= Date: Fri, 28 Aug 2026 19:47:37 +0800 Subject: [PATCH] test(ci): make release classifier stub module-safe --- .github/scripts/classify-release-notes.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/classify-release-notes.test.mjs b/.github/scripts/classify-release-notes.test.mjs index 662c0405786..a8e659d4fdc 100644 --- a/.github/scripts/classify-release-notes.test.mjs +++ b/.github/scripts/classify-release-notes.test.mjs @@ -241,7 +241,7 @@ describe('release note classification', () => { "if (args[0] === 'api' && args[1] === '-X' && (args[2] === 'POST' || args[2] === 'DELETE') && /\\/issues\\/\\d+\\/labels/.test(args[3])) {", " const action = args[2] === 'DELETE' ? 'remove' : 'add';", " const number = args[3].match(/\\/issues\\/(\\d+)\\/labels/)[1];", - ` require('node:fs').appendFileSync(${JSON.stringify(updates)}, number + ' ' + action + '\\n');`, + ` process.getBuiltinModule('node:fs').appendFileSync(${JSON.stringify(updates)}, number + ' ' + action + '\\n');`, ' process.exit(0);', '}', 'process.exit(1);',