feature: issue show/comment and machine-readable --json output #10
Labels
No labels
attention
blocked
blocker:ci-red
blocker:conflict
blocker:drill-pending
blocker:unrequested
bug
claimed
documentation
enhancement
epic
merge-next
needs-ruling
needs-triage
offsite
post-merge
ready
release
scope:ci
scope:cli
scope:docs
scope:manifests
scope:packaging
stale
state:addressing
state:bots-reviewing
state:building
state:needs-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: heavy-duty/stoke#10
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The project goal (README) is that every real Forgejo operation becomes a CLI command. Gaps that hurt scripting and day-to-day use:
Missing issue commands
stoke issue liststoke issue showstoke issue createstoke issue commentPR side already has
pr show/pr comment/pr review. Issues cannot be inspected or commented without falling back to curl/API.No stable machine output
All commands print human-oriented text. Automation (watchers, CI, shell pipelines) must scrape strings. There is no global or per-command
--jsonflag.Proposed fix
stoke issue show -o -r -n→GET /repos/{o}/{r}/issues/{n}.stoke issue comment -o -r -n -b/--body-file→POST .../issues/{n}/comments(reuse body validation frompr comment).--jsonon read commands (issue list/show,pr list/show,repo list,auth status, …) that emits the raw API objects (or a small stable schema) on stdout.Acceptance
stoke pr show … --json(or equivalent) is parseable byjq.test/cli.test.js/test/api.test.js).Audit note
Product gap from full audit of stoke @
92a6741. Not a security blocker; high value for heavy-duty automation.