refactor: exclude body on open commits

This commit is contained in:
Tiara Rodney 2026-03-15 04:04:18 +01:00
parent e4db005b04
commit 0330ccb0b1
No known key found for this signature in database
GPG key ID: 5CD8EC1D46106723

View file

@ -1,7 +1,7 @@
import type { Argv, ArgumentsCamelCase } from "yargs" import type { Argv, ArgumentsCamelCase } from "yargs"
import { CLICommand } from "../cli/CLICommand" import { CLICommand } from "../cli/CLICommand"
import { parseTodoFile, writeTodoFile } from "../file" import { parseTodoFile, writeTodoFile } from "../file"
import { getCurrentBranch, commitFileWithBody } from "../git" import { getCurrentBranch, commitFile } from "../git"
import type { IssueType, IssuePriority } from "../issue" import type { IssueType, IssuePriority } from "../issue"
export class CreateCommand extends CLICommand { export class CreateCommand extends CLICommand {
@ -76,11 +76,7 @@ export class CreateCommand extends CLICommand {
}) })
writeTodoFile(todo) writeTodoFile(todo)
commitFileWithBody( commitFile("TODO", `todo(${nextId}): open`)
"TODO",
`todo(${nextId}): open`,
args.plan as string
)
console.log(`Created issue #${nextId}: ${args.title}`) console.log(`Created issue #${nextId}: ${args.title}`)
return 0 return 0
} }