From 2f1d2c30afc72b7fc56156dd7c650c99c0a2bdf5 Mon Sep 17 00:00:00 2001 From: Tiara Rodney Date: Fri, 20 Mar 2026 19:08:44 +0100 Subject: [PATCH 1/2] fix: use git commit -F - to preserve newlines in commit messages commitFileWithBody passed the message through JSON.stringify with git commit -m, which escaped newlines to literal \n characters. Switch to git commit -F - with stdin input to preserve actual newlines. --- src/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git.ts b/src/git.ts index cc20f8b..aac8220 100644 --- a/src/git.ts +++ b/src/git.ts @@ -18,7 +18,7 @@ export function commitFile(path: string, message: string, cwd = process.cwd()): export function commitFileWithBody(path: string, header: string, body: string, cwd = process.cwd()): void { execSync(`git add ${path}`, { cwd }) const msg = `${header}\n\n${body}` - execSync(`git commit -m ${JSON.stringify(msg)}`, { cwd }) + execSync(`git commit -F -`, { cwd, input: msg }) } export function branchExists(branch: string, cwd = process.cwd()): boolean { From 2d219593305152c9f968dfa0aee6e3c35710455b Mon Sep 17 00:00:00 2001 From: Tiara Rodney Date: Fri, 20 Mar 2026 19:09:39 +0100 Subject: [PATCH 2/2] chore: bump version to 0.3.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f37caef..ac19d11 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@byteb4rb1e/mime-todo", - "version": "0.3.0", + "version": "0.3.1", "description": "CLI for the MIME TODO issue tracker specification with Bugzilla integration", "author": "Tiara Rodney ", "license": "CC-BY-ND-4.0",