Fix comparison and stop completing then uncompleting tasks
This commit is contained in:
parent
060ee12314
commit
802cc5a695
1 changed files with 2 additions and 2 deletions
|
@ -26,10 +26,10 @@ def assigned_issues():
|
||||||
if not task:
|
if not task:
|
||||||
continue
|
continue
|
||||||
tasks_actioned.append(task["id"])
|
tasks_actioned.append(task["id"])
|
||||||
if assigned_issue == "closed" and not is_task_completed(task):
|
if assigned_issue.state == "closed" and not is_task_completed(task):
|
||||||
print("completing", assigned_issue)
|
print("completing", assigned_issue)
|
||||||
task.complete()
|
task.complete()
|
||||||
if is_task_completed(task):
|
elif assigned_issue.state == "open" and is_task_completed(task):
|
||||||
print("uncompleting task", assigned_issue)
|
print("uncompleting task", assigned_issue)
|
||||||
task.uncomplete()
|
task.uncomplete()
|
||||||
if task["content"] != issue_to_task_name(assigned_issue):
|
if task["content"] != issue_to_task_name(assigned_issue):
|
||||||
|
|
Reference in a new issue