Don't worry about missing Trello cards if the issue is completed.
This is a normal case when Trello lists or cards are archived.
This commit is contained in:
parent
2080be5537
commit
208bdab1e4
@ -1,6 +1,6 @@
|
|||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
author = "Jonathan Bernard"
|
author = "Jonathan Bernard"
|
||||||
description = "Synchronization tool between JDB pit and Trello."
|
description = "Synchronization tool between JDB pit and Trello."
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
@ -126,10 +126,13 @@ proc syncContext(
|
|||||||
let foundCard = cards --> find(it.card.id == cardId)
|
let foundCard = cards --> find(it.card.id == cardId)
|
||||||
|
|
||||||
if foundCard.isNone:
|
if foundCard.isNone:
|
||||||
raise newException(Exception,
|
## Ignore issues that are completed (may be archived in Trello)
|
||||||
"pit issue " & ($i.id)[0..6] & " references a Trello card with id " &
|
if i.state == Done: unmatchedIssueIds.excl($i.id)
|
||||||
cardId & " but that card is not any of the lists of the " &
|
else:
|
||||||
board.name & " board.")
|
raise newException(Exception,
|
||||||
|
"pit issue " & ($i.id)[0..6] & " references a Trello card with id " &
|
||||||
|
cardId & " but that card is not any of the lists of the " &
|
||||||
|
board.name & " board.")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
let c = foundCard.get
|
let c = foundCard.get
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const PIT2TRELLO_VERSION* = "0.2.1"
|
const PIT2TRELLO_VERSION* = "0.2.2"
|
||||||
|
|
||||||
const USAGE* = """
|
const USAGE* = """
|
||||||
Usage:
|
Usage:
|
||||||
|
Loading…
Reference in New Issue
Block a user