Skip to content

Commit

Permalink
fix(cli): uncomment line of code that actually creates repositories
Browse files Browse the repository at this point in the history
I have no words... I don't know why I commented this out 🙃
  • Loading branch information
AntoineDao committed Jan 27, 2021
1 parent 644ef9a commit 891901b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions queenbee_pollination/cli/push.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ def handle_repository(
name=name,
)

# try:
# if repo_type == 'recipe':
# client.recipes.create_recipe(
# owner=owner,
# repository_create=new_repo,
# )
# elif repo_type == 'plugin':
# client.plugins.create_plugin(
# owner=owner,
# repository_create=new_repo,
# )
# except ApiException as error:
# raise click.ClickException(error)
try:
if repo_type == 'recipe':
client.recipes.create_recipe(
owner=owner,
repository_create=new_repo,
)
elif repo_type == 'plugin':
client.plugins.create_plugin(
owner=owner,
repository_create=new_repo,
)
except ApiException as error:
raise click.ClickException(error)

click.echo('Successfully created repository!')

Expand Down

0 comments on commit 891901b

Please sign in to comment.