Only re-open a task if it's completed
This commit is contained in:
parent
68dc7e7546
commit
6450c6dc57
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ def todoist_repo_prs():
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
todoist.items.complete(existing_task_id)
|
todoist.items.complete(existing_task_id)
|
||||||
elif my_review.commit_id != pr.head.sha:
|
elif my_review.commit_id != pr.head.sha and task_completed:
|
||||||
logger.info("Re-opening task to review '{}'".format(pr.title))
|
logger.info("Re-opening task to review '{}'".format(pr.title))
|
||||||
todoist.items.unarchive(existing_task_id)
|
todoist.items.unarchive(existing_task_id)
|
||||||
todoist.items.uncomplete(existing_task_id)
|
todoist.items.uncomplete(existing_task_id)
|
||||||
|
|
Reference in a new issue