From 3c22b0e17d80a36247f33aef20376bdc45411f88 Mon Sep 17 00:00:00 2001 From: nrslib <38722970+nrslib@users.noreply.github.com> Date: Fri, 6 Feb 2026 11:22:04 +0900 Subject: [PATCH] =?UTF-8?q?CI:=20listTasks=20=E3=83=86=E3=82=B9=E3=83=88?= =?UTF-8?q?=E3=81=AB=20git=20config=20user=20=E8=A8=AD=E5=AE=9A=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub Actions の runner に git user.name/email が未設定のため git commit が失敗していた問題を修正 --- src/__tests__/listTasks.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/__tests__/listTasks.test.ts b/src/__tests__/listTasks.test.ts index ba3b182..8395422 100644 --- a/src/__tests__/listTasks.test.ts +++ b/src/__tests__/listTasks.test.ts @@ -346,6 +346,8 @@ describe('listTasks non-interactive JSON output', () => { tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'takt-test-json-')); // Initialize as a git repo so detectDefaultBranch works execFileSync('git', ['init', '--initial-branch', 'main'], { cwd: tmpDir, stdio: 'pipe' }); + execFileSync('git', ['config', 'user.name', 'Test User'], { cwd: tmpDir, stdio: 'pipe' }); + execFileSync('git', ['config', 'user.email', 'test@example.com'], { cwd: tmpDir, stdio: 'pipe' }); execFileSync('git', ['commit', '--allow-empty', '-m', 'init'], { cwd: tmpDir, stdio: 'pipe' }); });