Coverage for src\gibr\cli\issues.py: 46%
13 statements
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-20 09:05 +0300
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-20 09:05 +0300
1"""CLI command to list open issues from the tracker."""
3import click
4from tabulate import tabulate
6from gibr.notify import warning
9@click.command("issues")
10@click.pass_context
11def issues(ctx):
12 """List open issues from the tracker."""
13 tracker = ctx.obj["tracker"]
14 issues = tracker.list_issues()
15 if not issues:
16 warning("No open issues found.")
17 return
18 table = [[issue.id, issue.type, issue.title] for issue in issues]
20 click.echo(tabulate(table, headers=["Issue", "Type", "Title"], tablefmt="github"))