refactor: exclude body on open commits
This commit is contained in:
parent
e4db005b04
commit
0330ccb0b1
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue