From c1c12c56eb923d6453cd2845c4baa440de3e1333 Mon Sep 17 00:00:00 2001 From: Cheney <970320820@qq.com> Date: Tue, 12 May 2026 17:57:32 +0800 Subject: [PATCH] fix(cli): gitignore test scaffolding files in publish-cli tests Tests write stdout.log/stderr.log into the test repo root, which made `git status --porcelain` non-empty and broke test 3 (non-main branch abort) by tripping the dirty-tree check first. Add a .gitignore to the test fixture repo to filter out these files. --- scripts/tests/publish-cli-test.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/tests/publish-cli-test.sh b/scripts/tests/publish-cli-test.sh index 1729dd9c..f62af1e4 100755 --- a/scripts/tests/publish-cli-test.sh +++ b/scripts/tests/publish-cli-test.sh @@ -95,12 +95,20 @@ NODE EOF chmod +x "$repo/bin/npm" + # Ignore test scaffolding files so they don't make `git status` dirty. + cat >"$repo/.gitignore" <