From 1064de3e1b5eb6f9821eb2db825ed504be2f5316 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Mon, 13 Jan 2025 08:16:07 -0600 Subject: [PATCH] Add support for syncing the parent property (if it exists). --- pit.nimble | 2 +- src/pit/cliconstants.nim | 2 +- src/pit/sync_pbm_vsb.nim | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pit.nimble b/pit.nimble index 7af115d..80a746d 100644 --- a/pit.nimble +++ b/pit.nimble @@ -1,6 +1,6 @@ # Package -version = "4.29.0" +version = "4.29.1" author = "Jonathan Bernard" description = "Personal issue tracker." license = "MIT" diff --git a/src/pit/cliconstants.nim b/src/pit/cliconstants.nim index 6dd02d8..9abe7f3 100644 --- a/src/pit/cliconstants.nim +++ b/src/pit/cliconstants.nim @@ -1,4 +1,4 @@ -const PIT_VERSION* = "4.29.0" +const PIT_VERSION* = "4.29.1" const USAGE* = """Usage: pit ( new | add) [] [options] diff --git a/src/pit/sync_pbm_vsb.nim b/src/pit/sync_pbm_vsb.nim index 8ac14dc..87d89ad 100644 --- a/src/pit/sync_pbm_vsb.nim +++ b/src/pit/sync_pbm_vsb.nim @@ -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](),