Merge branch 'feature/11'
This commit is contained in:
commit
d943692e98
3 changed files with 7 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@byteb4rb1e/mime-todo",
|
"name": "@byteb4rb1e/mime-todo",
|
||||||
"version": "0.4.0",
|
"version": "0.5.0",
|
||||||
"description": "CLI for the MIME TODO issue tracker specification with Bugzilla integration",
|
"description": "CLI for the MIME TODO issue tracker specification with Bugzilla integration",
|
||||||
"author": "Tiara Rodney <me@tiararodney.com>",
|
"author": "Tiara Rodney <me@tiararodney.com>",
|
||||||
"license": "CC-BY-ND-4.0",
|
"license": "CC-BY-ND-4.0",
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,10 @@ export class DoneCommand extends CLICommand {
|
||||||
addArguments(yargs: Argv): Argv {
|
addArguments(yargs: Argv): Argv {
|
||||||
return yargs
|
return yargs
|
||||||
.positional("id", { type: "number", demandOption: true })
|
.positional("id", { type: "number", demandOption: true })
|
||||||
.option("summary", {
|
.option("acceptance", {
|
||||||
type: "string",
|
type: "string",
|
||||||
demandOption: true,
|
demandOption: true,
|
||||||
description: "High-level summary of what was delivered",
|
description: "What was delivered against the acceptance criteria",
|
||||||
})
|
})
|
||||||
.option("confirm", {
|
.option("confirm", {
|
||||||
type: "boolean",
|
type: "boolean",
|
||||||
|
|
@ -59,7 +59,7 @@ export class DoneCommand extends CLICommand {
|
||||||
commitFileWithBody(
|
commitFileWithBody(
|
||||||
"TODO",
|
"TODO",
|
||||||
`todo(${issue.id}): done`,
|
`todo(${issue.id}): done`,
|
||||||
args.summary as string
|
args.acceptance as string
|
||||||
)
|
)
|
||||||
console.log(`Issue #${issue.id} is now done`)
|
console.log(`Issue #${issue.id} is now done`)
|
||||||
console.log(`Merge to develop: git checkout develop && git merge ${expectedBranch} --no-ff`)
|
console.log(`Merge to develop: git checkout develop && git merge ${expectedBranch} --no-ff`)
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,10 @@ export class StartCommand extends CLICommand {
|
||||||
addArguments(yargs: Argv): Argv {
|
addArguments(yargs: Argv): Argv {
|
||||||
return yargs
|
return yargs
|
||||||
.positional("id", { type: "number", demandOption: true })
|
.positional("id", { type: "number", demandOption: true })
|
||||||
.option("plan", {
|
.option("acceptance-criteria", {
|
||||||
type: "string",
|
type: "string",
|
||||||
demandOption: true,
|
demandOption: true,
|
||||||
description: "High-level description of planned approach",
|
description: "What must be true for this issue to be considered done",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -51,7 +51,7 @@ export class StartCommand extends CLICommand {
|
||||||
commitFileWithBody(
|
commitFileWithBody(
|
||||||
"TODO",
|
"TODO",
|
||||||
`todo(${issue.id}): in-progress`,
|
`todo(${issue.id}): in-progress`,
|
||||||
args.plan as string
|
args.acceptanceCriteria as string
|
||||||
)
|
)
|
||||||
console.log(`Issue #${issue.id} is now in-progress`)
|
console.log(`Issue #${issue.id} is now in-progress`)
|
||||||
console.log(`Create the issue branch: git checkout -b ${issueBranch}`)
|
console.log(`Create the issue branch: git checkout -b ${issueBranch}`)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue