2 Commits

3 changed files with 11 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# Package
version = "0.2.0"
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 -->
@ -209,6 +211,10 @@ proc syncContext(
for lentIssue in unmatchedIssues:
let issue = lentIssue
# Don't worry about creating new cards for issues that are done.
if issue.state == Done: continue
let list = board.lists[listCategoryForIssueState(issue.state)][0]
let newCard = TrelloCard(
name: issue.summary,

View File

@ -1,4 +1,4 @@
const PIT2TRELLO_VERSION* = "0.2.0"
const PIT2TRELLO_VERSION* = "0.2.1"
const USAGE* = """
Usage:
@ -15,4 +15,4 @@ Options:
--debug Enable verbose debug logging.
--help Print this help and usage information.
"""
"""