take: ask user if she wants to move to the issue's branch

This commit is contained in:
Benjamin Dauvergne 2021-11-25 11:59:16 +01:00
parent 8340ca2e75
commit e7a55c9ff5
1 changed files with 2 additions and 1 deletions

View File

@ -204,7 +204,8 @@ def take(issue_number, reference):
if '/%s-' % issue_number in head.name:
branch_name = head.name
branch = head
break
if click.confirm('Do you want to move to branch « %s » ?' % branch_name, default=True):
break
else:
new = True
default_branch_name = 'wip/%s-%s' % (issue_number, slugify(issue.subject)[:32])