Only re-open completed issues
This commit is contained in:
parent
2e1628641c
commit
30afb900f1
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ def todoist_repo_prs():
|
||||||
if my_review.commit_id == pr.head.sha and not existing_task['checked']:
|
if my_review.commit_id == pr.head.sha and not existing_task['checked']:
|
||||||
logger.info("Completing task to review '{}'".format(pr.title))
|
logger.info("Completing task to review '{}'".format(pr.title))
|
||||||
todoist.items.complete([existing_task_id])
|
todoist.items.complete([existing_task_id])
|
||||||
elif existing_task['checked']:
|
elif existing_task['checked'] and existing_task['checked']:
|
||||||
logger.info("Re-opening task to review '{}'".format(pr.title))
|
logger.info("Re-opening task to review '{}'".format(pr.title))
|
||||||
todoist.items.uncomplete([existing_task_id])
|
todoist.items.uncomplete([existing_task_id])
|
||||||
existing_task.update(
|
existing_task.update(
|
||||||
|
|
Reference in a new issue