Automation-first CLI for Tangled.org forked from cameron.stream/tangled-cli

pr list, view and delete read pull requests kept as tickets #8

targeting main from pr-tickets-read
Merged opened by and assigned to center.for.cybernetic.beauty
targeting main from pr-tickets-read

pr create opens a pull request in a repository's own store, but pr list, view and delete read only legacy sh.tangled.repo.pull records, so there they found nothing. #5 and #6 were invisible to tang.

When resolveKnotStore finds a store, they now route there:

  • pr list shows the tickets with a targetBranch, by number, each with its latest round's source branch.
  • pr view <n> adds the head commit, the number of rounds (one per org.tangled.review.patch) and the comments. --json includes every round.
  • pr delete <n> deletes the ticket on the version it read. The patches are the knot's, and it takes no contributed patch, so they stay, as when the web app erases a pull.

A ticket's completed state shows as merged. A pull request there is addressed only by its number, and an issue asked for as a pull request is refused as one.

Tested. The new tests went red first. Against this repository, pr list shows #5 and #6 as merged, and pr view 1 says #1 is an issue. bun run check passes (465 tests).

Still not done: editing, closing, reopening, commenting on or merging these pull requests, and pushing new rounds.

🤖 Generated with Claude Code

Commits 0