From 2ad89b95db59f9a47abb4c6bbc4b965ccd52925e Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 13 Jul 2020 10:34:48 +0200 Subject: [PATCH] misc: default to True for assignation if no assignation exists --- git_redmine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_redmine.py b/git_redmine.py index 41462d1..7e9c644 100644 --- a/git_redmine.py +++ b/git_redmine.py @@ -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: