From 0330ccb0b10e0d306bec75db4b8719da6f6bb15b Mon Sep 17 00:00:00 2001 From: Tiara Rodney Date: Sun, 15 Mar 2026 04:04:18 +0100 Subject: [PATCH] refactor: exclude body on open commits --- lib/commands/CreateCommand.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/commands/CreateCommand.ts b/lib/commands/CreateCommand.ts index 0fab8bd..358f245 100644 --- a/lib/commands/CreateCommand.ts +++ b/lib/commands/CreateCommand.ts @@ -1,7 +1,7 @@ import type { Argv, ArgumentsCamelCase } from "yargs" import { CLICommand } from "../cli/CLICommand" import { parseTodoFile, writeTodoFile } from "../file" -import { getCurrentBranch, commitFileWithBody } from "../git" +import { getCurrentBranch, commitFile } from "../git" import type { IssueType, IssuePriority } from "../issue" export class CreateCommand extends CLICommand { @@ -76,11 +76,7 @@ export class CreateCommand extends CLICommand { }) writeTodoFile(todo) - commitFileWithBody( - "TODO", - `todo(${nextId}): open`, - args.plan as string - ) + commitFile("TODO", `todo(${nextId}): open`) console.log(`Created issue #${nextId}: ${args.title}`) return 0 }