Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/commands/bug-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineCommand } from 'citty'
import { bugArgs } from '@/args/bug.ts'
import { defaultArgs } from '@/args/default.ts'
import { createBug } from '@/commands/bug.ts'
import { resolveConfig } from '@/config.ts'
import { ANTDV_REPO_CLI } from '@/constants/repo.ts'

export default defineCommand({
Expand All @@ -14,6 +15,15 @@ export default defineCommand({
...bugArgs,
},
async run({ args }) {
await createBug(ANTDV_REPO_CLI, args)
const config = resolveConfig(args)
config.title = args.title
config.reproduction = args.reproduction
config.steps = args.steps
config.expected = args.expected
config.actual = args.actual
config.extra = args.extra
config.submit = args.submit

await createBug(ANTDV_REPO_CLI, config)
},
})
Loading