Unarchive tasks before uncompleting them
I guess that has to be explicitly done now...
This commit is contained in:
parent
00ab6b1dc1
commit
9578dfaa93
2 changed files with 2 additions and 0 deletions
|
@ -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(
|
||||
|
|
|
@ -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:
|
||||
|
|
Reference in a new issue