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 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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue