WIP: A simple cli for daily tangled use cases and AI integration. This is for my personal use right now, but happy if others get mileage from it! :)
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

PR Phase 1: Create, List, and View Pull Requests #1

Implements issue #4 (Phase 1). Adds tangled pr create, tangled pr list, and tangled pr view commands.

Changes#

  • src/lib/pulls-api.ts — business logic: createPull, listPulls, getPull, getPullState, resolveSequentialPullNumber, getCompletePullData
  • src/commands/pr.tstangled pr create/list/view with --json, --base, --head, --skip-behind-check
  • src/index.ts — registers the pr command group
  • tests/ — 28 new tests (14 lib, 14 command)

How pr create works#

  1. Detects current branch automatically if --head is not specified
  2. Checks if head is behind base; prompts interactively or exits in --json mode (bypass with --skip-behind-check)
  3. Generates git diff base..head, gzip-compresses it, uploads as a blob (application/gzip)
  4. Creates a sh.tangled.repo.pull record with target, source, and patchBlob
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:b2mcbcamkwyznc5fkplwlxbf/sh.tangled.repo.pull/3metzvvjl6m2g
Diff #0

No differences found between the selected revisions.

History

1 round 0 comments
sign up or login to add to the discussion
markbennett.ca submitted #0
patch application failed: error: No valid patches in input (allow with "--allow-empty")
expand 0 comments