Skip to content

feat(box): worktree new checks out a pull request with --pr - #50

Merged
sean-brydon merged 1 commit into
cosscom:mainfrom
hariombalhara:feat/worktree-new-pr
Oct 11, 2026
Merged

sean-brydon merged 1 commit into
cosscom:mainfrom
hariombalhara:feat/worktree-new-pr

Conversation

@hariombalhara

Copy link
Copy Markdown
Contributor

The daemon's CreateWorktreeFrom already checks out a pull request when the request carries pr (and optionally ref): it fetches origin's branch, or pull/N/head for a fork. The worktree new CLI had no way to set those fields, so tools driving berthd could not create a PR worktree.

  • worktree new LOC/NAME --pr N [--ref REF] passes pr and ref through. Pass the head branch as --branch.
  • --ref without --pr is a usage error.
  • Docs (berthd, cli reference) and changelog updated.

Checks: go vet ./... and go test ./... pass (-race on internal/boxcmd and cmd/...).

🤖 Generated with Claude Code

https://claude.ai/code/session_01DMyt3G2r2eQdasfxNipA8Y

@vercel

vercel Bot commented Oct 11, 2026

Copy link
Copy Markdown

@hariombalhara is attempting to deploy a commit to the seanbrydonio's projects Team on Vercel.

A member of the Team first needs to authorize it.

@sean-brydon
sean-brydon merged commit 73e3b37 into cosscom:main Oct 11, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants