Merge branch 'bugfix/7'
This commit is contained in:
commit
90efa2494e
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@byteb4rb1e/mime-todo",
|
||||
"version": "0.3.2",
|
||||
"version": "0.3.3",
|
||||
"description": "CLI for the MIME TODO issue tracker specification with Bugzilla integration",
|
||||
"author": "Tiara Rodney <me@tiararodney.com>",
|
||||
"license": "CC-BY-ND-4.0",
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ function parseGitLog(range: string, cwd: string): GitCommit[] {
|
|||
|
||||
// Check if a commit subject is a todo transition
|
||||
export function parseTodoTransition(subject: string): { issueId: number; status: string } | null {
|
||||
const match = subject.match(/^todo\((\d+)\):\s*(\S+)/)
|
||||
const match = subject.match(/^todo\((\d+)\):\s*([a-z-]+)/)
|
||||
if (!match) return null
|
||||
return { issueId: Number(match[1]), status: match[2] }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue