Add property removal behavior: specifying a property with no value removes it.
This commit is contained in:
parent
65edc56e08
commit
476a94c679
@ -146,7 +146,8 @@ proc toStorageFormat*(issue: Issue, withComments = false): string =
|
||||
if withComments: lines.add("# Summary (one line):")
|
||||
lines.add(issue.summary)
|
||||
if withComments: lines.add("# Properties (\"key:value\" per line):")
|
||||
for key, val in issue.properties: lines.add(key & ": " & val)
|
||||
for key, val in issue.properties:
|
||||
if not val.isNilOrWhitespace: lines.add(key & ": " & val)
|
||||
if issue.tags.len > 0: lines.add("tags: " & issue.tags.join(","))
|
||||
if not isNilOrWhitespace(issue.details) or withComments:
|
||||
if withComments: lines.add("# Details go below the \"--------\"")
|
||||
|
@ -1 +1 @@
|
||||
const PIT_VERSION* = "4.4.4"
|
||||
const PIT_VERSION* = "4.5.0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user