misc: default to True for assignation if no assignation exists
This commit is contained in:
parent
1df2a392ef
commit
2ad89b95db
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue