Merge branch 'feature/5'

This commit is contained in:
Tiara Rodney 2026-03-20 19:13:53 +01:00
commit 53525b9b52
No known key found for this signature in database
GPG key ID: 5CD8EC1D46106723
2 changed files with 2 additions and 2 deletions

View file

@ -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 <me@tiararodney.com>",
"license": "CC-BY-ND-4.0",

View file

@ -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 {