1 Commits

3 changed files with 10 additions and 11 deletions

View File

@ -1,6 +1,6 @@
# Package
version = "0.2.2"
version = "0.2.1"
author = "Jonathan Bernard"
description = "Synchronization tool between JDB pit and Trello."
license = "MIT"

View File

@ -102,8 +102,10 @@ proc syncContext(
let board = s.boards[ctx.boardId]
let issues = s.issues.find(
propsFilter(newTable([("context", ctx.context)])))
var issueFilter = initFilter()
issueFilter.completedRange = some((now() - 60.days, now()))
issueFilter.properties = newTable([("context", ctx.context)])
let issues = s.issues.find(issueFilter)
let cards: seq[tuple[list: TrelloListSummary, card: TrelloCard]] =
board.lists.pairs.toSeq -->
@ -126,13 +128,10 @@ proc syncContext(
let foundCard = cards --> find(it.card.id == cardId)
if foundCard.isNone:
## Ignore issues that are completed (may be archived in Trello)
if i.state == Done: unmatchedIssueIds.excl($i.id)
else:
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.")
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:
let c = foundCard.get

View File

@ -1,4 +1,4 @@
const PIT2TRELLO_VERSION* = "0.2.2"
const PIT2TRELLO_VERSION* = "0.2.1"
const USAGE* = """
Usage: