add a --reference option to the new command
This commit is contained in:
parent
bf27d15b45
commit
978088096c
|
@ -311,8 +311,9 @@ def comment(issue):
|
|||
|
||||
|
||||
@issue.command()
|
||||
@click.option('--reference', default=None)
|
||||
@click.pass_context
|
||||
def new(ctx):
|
||||
def new(ctx, reference):
|
||||
'''Create a new issue in the default project of this repository'''
|
||||
project = get_current_project()
|
||||
api = get_redmine_api()
|
||||
|
@ -334,7 +335,7 @@ def new(ctx):
|
|||
description=description,
|
||||
assigned_to_id=current_user.id)
|
||||
click.echo('Created issue %s' % issue.url)
|
||||
ctx.invoke(take, issue_number=issue.id)
|
||||
ctx.invoke(take, issue_number=issue.id, reference=reference)
|
||||
|
||||
|
||||
class MyProgressPrinter(git.RemoteProgress):
|
||||
|
|
Loading…
Reference in New Issue