Unarchive tasks before uncompleting them

I guess that has to be explicitly done now...
This commit is contained in:
Jake Howard 2019-09-06 09:26:50 +01:00
parent 00ab6b1dc1
commit 9578dfaa93
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 2 additions and 0 deletions

View file

@ -59,6 +59,7 @@ def todoist_assigned_issues():
if is_task_completed(existing_task):
logger.info("Re-opening task '{}'".format(issue.title))
todoist.items.unarchive(existing_task_id)
todoist.items.uncomplete(existing_task_id)
existing_task.update(

View file

@ -58,6 +58,7 @@ def todoist_repo_prs():
todoist.items.complete(existing_task_id)
elif task_completed:
logger.info("Re-opening task to review '{}'".format(pr.title))
todoist.items.unarchive(existing_task_id)
todoist.items.uncomplete(existing_task_id)
continue
elif my_review and my_review.commit_id != pr.head.sha: