From 30afb900f18a6d9d333a48b2a6cce6cbfaf46698 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 20 Feb 2019 20:01:20 +0000 Subject: [PATCH] Only re-open completed issues --- actioner/scheduler/todoist_repo_prs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actioner/scheduler/todoist_repo_prs.py b/actioner/scheduler/todoist_repo_prs.py index 97a6dd8..f0253bd 100644 --- a/actioner/scheduler/todoist_repo_prs.py +++ b/actioner/scheduler/todoist_repo_prs.py @@ -58,7 +58,7 @@ def todoist_repo_prs(): if my_review.commit_id == pr.head.sha and not existing_task['checked']: logger.info("Completing task to review '{}'".format(pr.title)) 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)) todoist.items.uncomplete([existing_task_id]) existing_task.update(