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: