Fix issue which resulted in constantly re-opening and closing tasks
This commit is contained in:
parent
9578dfaa93
commit
deaa813ca8
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ def todoist_repo_prs():
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
todoist.items.complete(existing_task_id)
|
todoist.items.complete(existing_task_id)
|
||||||
elif task_completed:
|
elif my_review.commit_id != pr.head.sha:
|
||||||
logger.info("Re-opening task to review '{}'".format(pr.title))
|
logger.info("Re-opening task to review '{}'".format(pr.title))
|
||||||
todoist.items.unarchive(existing_task_id)
|
todoist.items.unarchive(existing_task_id)
|
||||||
todoist.items.uncomplete(existing_task_id)
|
todoist.items.uncomplete(existing_task_id)
|
||||||
|
|
Reference in a new issue