From 34e56717153721389d9dd1d6ea6055e63e311cee Mon Sep 17 00:00:00 2001 From: Chinar Amrutkar Date: Mon, 2 Mar 2026 15:23:03 +0000 Subject: [PATCH] feat: add pending status for tickets needing human input Implements feature request from issue #39. - Add pending as a valid ticket status - tk status now accepts pending - tk ready excludes pending tickets - tk blocked treats pending as not ready --- ticket | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ticket b/ticket index ff27aae2..08abe3c0 100755 --- a/ticket +++ b/ticket @@ -234,7 +234,7 @@ cmd_create() { } # Valid statuses -VALID_STATUSES="open in_progress closed" +VALID_STATUSES="open in_progress pending closed" validate_status() { local status="$1" @@ -700,7 +700,7 @@ cmd_ready() { # Find ready tickets: active with all deps closed for (id in statuses) { status = statuses[id] - if (status != "open" && status != "in_progress") continue + if (status != "open" && status != "in_progress" && status != "pending") continue if (assignee_filter != "" && assignees[id] != assignee_filter) continue if (tag_filter != "" && !has_tag(all_tags[id], tag_filter)) continue @@ -837,7 +837,7 @@ cmd_blocked() { # Find blocked tickets: active with at least one dep not closed for (id in statuses) { status = statuses[id] - if (status != "open" && status != "in_progress") continue + if (status != "open" && status != "in_progress" && status != "pending") continue if (assignee_filter != "" && assignees[id] != assignee_filter) continue if (tag_filter != "" && !has_tag(all_tags[id], tag_filter)) continue @@ -1312,7 +1312,7 @@ Commands: start Set status to in_progress close Set status to closed reopen Set status to open - status Update status (open|in_progress|closed) + status Update status (open|in_progress|pending|closed) dep Add dependency (id depends on dep-id) dep tree [--full] Show dependency tree (--full disables dedup) dep cycle Find dependency cycles in open tickets