From 9578dfaa93787ce6b2c035f1b47db8a750e1ba64 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 6 Sep 2019 09:26:50 +0100 Subject: [PATCH] Unarchive tasks before uncompleting them I guess that has to be explicitly done now... --- actioner/scheduler/todoist_assigned_issues.py | 1 + actioner/scheduler/todoist_repo_prs.py | 1 + 2 files changed, 2 insertions(+) diff --git a/actioner/scheduler/todoist_assigned_issues.py b/actioner/scheduler/todoist_assigned_issues.py index a4eabeb..9d785e1 100644 --- a/actioner/scheduler/todoist_assigned_issues.py +++ b/actioner/scheduler/todoist_assigned_issues.py @@ -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( diff --git a/actioner/scheduler/todoist_repo_prs.py b/actioner/scheduler/todoist_repo_prs.py index 51f8b1c..687dcbf 100644 --- a/actioner/scheduler/todoist_repo_prs.py +++ b/actioner/scheduler/todoist_repo_prs.py @@ -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: