piknik

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0784cb4d3a9e62927bc925db923b54fc54c8c9cb
parent 815575036d8b7ee048774b18cda35756462082a5
Author: lash <dev@holbrook.no>
Date:   Tue, 26 Aug 2025 13:51:57 +0100

Set backlog state by default unless explicitly proposed

Diffstat:
Mpiknik/cli/add.py | 7+++++++
Msetup.cfg | 2+-
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/piknik/cli/add.py b/piknik/cli/add.py @@ -9,11 +9,13 @@ ctx = None def subparser(argp): argp.add_argument('title', type=str, nargs='*', help='issue title') + argp.add_argument('--proposed', type=bool, help='start issue in proposed state') return argp def assembler(o, arg): o.title = arg.title + o.proposed = arg.proposed def main(): @@ -29,5 +31,10 @@ def main(): o = Issue(title, issue_id=issue_id, alias=issue_id[:5]) else: o = Issue(title, alias=ctx.alias) + v = ctx.basket.add(o) + + if not ctx.proposed: + ctx.basket.state_backlog(issue_id) + sys.stdout.write(v + '\n') diff --git a/setup.cfg b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = piknik -version = 0.3.18rc4 +version = 0.3.18rc5 description = CLI issue tracker author = Louis Holbrook author_email = dev@holbrook.no