Skip to content

Commit

Permalink
Show admin usernames in confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
atwalsh committed Jun 25, 2020
1 parent b4a1690 commit 38b9ff9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qqq/qqq.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ def send(github_username, admins):
_msg = f'''Are you sure you want to send the current branch to {user["login"]} ({user["name"]})? This will:
\t1. Take the current `{repo.active_branch}` branch and force push to {auth_user}/{repo_name} on GitHub (private)
\t2. Invite {github_username} as a collaborator\n'''
if admins:
_msg += f'\t3. Invite {", ".join([str(a) for a in admins])} as {"an " if len(admins) == 1 else ""}' \
f'admin collaborator{"s" if len(admins) > 1 else ""}\n'
click.confirm(click.style(_msg, fg='cyan'), abort=True)

click.echo(f'Creating repo on GitHub and inviting {user["login"]}...')
Expand Down

0 comments on commit 38b9ff9

Please sign in to comment.