Add issue show/comment, --json output, and pr review --commit #20
No reviewers
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: heavy-duty/stoke#20
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/issue-cmds-json-review-commit"
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?
Summary
stoke issue show -o <owner> -r <repo> -n <number>— fetches a single issue viaGET /repos/{owner}/{repo}/issues/{index}(newForgejoClient.getIssue) and prints it in the same style aspr show.stoke issue comment— mirrorspr comment's exact option set (-b/--body,--body-filewins) and body validation (missing or whitespace-only bodies are rejected before any network call), posting via newForgejoClient.createIssueCommenttoPOST /repos/{owner}/{repo}/issues/{index}/comments.--jsonflag on every read command (auth status,repo list,issue list,issue show,pr list,pr show,release list,release view,label list,branch list,org repos,org team list,org team member-list,user list,user show) — prints the raw API response pretty-printed instead of the human format.stoke pr review --commit <sha>—ForgejoClient.createPullRequestReviewnow takes{ commitId } = {}and includescommit_idin the request JSON only when set; omitting--commitpreserves the current behavior exactly.Tests
getIssue/createIssueCommentendpoint wiring;commit_idincluded only when set.issue shownumber validation,issue commentbody validation and endpoint wiring,--jsonoutput for the six required read commands against a mock server, andpr review --commitpresence/absence ofcommit_idthrough the CLI boundary.npm test: 70/70 pass.Closes #10
Closes #11
Verdict: Request changes — blockers listed below.
Summary
Feature set looks solid on its own branch:
issue show/issue comment, shared--jsonon read commands, andpr review --commitplumbing (commit_idonly when set). API helpers and CLI validation mirror existingprpatterns well, and the unit suite is green on the branch tip (70/70 pass).Blockers
Not mergeable against current
main. Branch is based atf4b0bdb(post-#15) and is missing later main history (repo clone/parseDepth, design brand merge #16). Merging into currentmainproduces a content conflict insrc/cli.jsaround the new helpers (parseDepthvsprintJson). After #19 lands first,test/cli.test.jswill also conflict at the EOF append of the new test blocks.Needed: rebase (or merge) onto up-to-date
main(ideally after #17–#19 are merged), keep bothparseDepthandprintJson, re-runnpm test, force-with-lease push.Non-blocking notes (once rebased)
createIssueCommentandcreatePullRequestCommenthit the same Forgejo endpoint — fine for semantic CLI clarity; not a bug.--jsonintentionally bypasses client-side--limitslicing (raw payload) — good; worth a one-line README note if not already clear.Happy to re-review and approve immediately after the rebase is clean.
eabfc30a66to0531bde366Verdict: Approve — blockers resolved.
Update
Rebased
feat/issue-cmds-json-review-commitonto currentmain(includes #17–#19):parseDepth(from #14) andprintJson(this PR) insrc/cli.jstest/cli.test.jsNo remaining blockers. Safe to merge.