misc: default to True for assignation if no assignation exists

This commit is contained in:
Benjamin Dauvergne 2020-07-13 10:34:48 +02:00
parent 1df2a392ef
commit 2ad89b95db
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ def take(issue_number, reference):
click.echo('Moved to branch %s' % branch_name)
current_user = api.user.get('current')
if ((not hasattr(issue, 'assigned_to') or issue.assigned_to.id != current_user.id)
and click.confirm('Do you want to assign the issue to yourself ?', default=True)):
and click.confirm('Do you want to assign the issue to yourself ?', default=not hasattr(issue,·'assigned_to'))):
issue.assigned_to_id = current_user.id
issue.save()
if new: