Add support for syncing the parent property (if it exists).
This commit is contained in:
parent
8b0c751344
commit
1064de3e1b
@ -1,6 +1,6 @@
|
||||
# Package
|
||||
|
||||
version = "4.29.0"
|
||||
version = "4.29.1"
|
||||
author = "Jonathan Bernard"
|
||||
description = "Personal issue tracker."
|
||||
license = "MIT"
|
||||
|
@ -1,4 +1,4 @@
|
||||
const PIT_VERSION* = "4.29.0"
|
||||
const PIT_VERSION* = "4.29.1"
|
||||
|
||||
const USAGE* = """Usage:
|
||||
pit ( new | add) <summary> [<state>] [options]
|
||||
|
@ -19,6 +19,7 @@ type
|
||||
lastUpdatedAt*: DateTime
|
||||
archivedAt*: Option[DateTime]
|
||||
tags*: seq[string]
|
||||
parent*: Option[string]
|
||||
priority*: Option[string]
|
||||
project*: Option[string]
|
||||
milestone*: Option[string]
|
||||
@ -45,6 +46,9 @@ proc toServerTask(i: Issue): ServerTask =
|
||||
lastUpdatedAt:
|
||||
if i.hasProp("last-updated"): parseIso8601(i["last-updated"])
|
||||
else: now(),
|
||||
parent:
|
||||
if i.hasProp("parent"): some(i["parent"])
|
||||
else: none[string](),
|
||||
priority:
|
||||
if i.hasProp("priority"): some(i["priority"])
|
||||
else: none[string](),
|
||||
|
Loading…
x
Reference in New Issue
Block a user