Don't create tasks for issues i'm not assigned to

This commit is contained in:
Jake Howard 2019-08-30 18:39:49 +01:00
parent 58f6f7abbc
commit 43dcc129da
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -44,6 +44,9 @@ def todoist_assigned_issues():
logger.info("Deleting task for '{}'".format(issue.title)) logger.info("Deleting task for '{}'".format(issue.title))
todoist.items.delete([existing_task_id]) todoist.items.delete([existing_task_id])
if not me_assigned:
continue
elif ( elif (
issue.state == "closed" issue.state == "closed"
and existing_task_id is not None and existing_task_id is not None