Commit c3b8b8bf authored by Geoffrey Guéret's avatar Geoffrey Guéret

Merge branch 'add-issue-browse-command' into '22-add-issue-time-command'

Add issue browse command

See merge request !15
parents faf28d87 f5c52f78
Pipeline #15920 passed with stages
in 3 minutes and 37 seconds
......@@ -6,6 +6,8 @@ from operator import itemgetter
from collections import defaultdict
from ubicli.utils import GitRepository
from ubicli.factories import connections
from ubicli.config import REDMINE_URL
STATUS_NEW = 1
STATUS_PENDING = 2
......@@ -141,6 +143,12 @@ def time_estimate(ctx, amount, force):
ctx.obj['ISSUE'].save()
@cli.command()
@click.pass_context
def browse(ctx):
click.launch(f'{REDMINE_URL}/issues/{ctx.obj["ISSUE"].id}')
@time.command('list')
@click.pass_context
def time_list(ctx):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment