Skip to content

feat(open): accept owner/repo with random branch name (issue #44)#84

Merged
tupe12334 merged 1 commit into
mainfrom
issue-44
Mar 21, 2026
Merged

feat(open): accept owner/repo with random branch name (issue #44)#84
tupe12334 merged 1 commit into
mainfrom
issue-44

Conversation

@tupe12334

Copy link
Copy Markdown
Member

Summary

  • worktree open owner/repo now works as a valid input — creates an ad-hoc workspace with a randomly generated adjective_noun branch name
  • The worktree:// URL scheme already supported this (worktree://open?owner=X&repo=Y with no issue= param)
  • open-multi already accepted bare owner/repo slugs (checked out on default branch)
  • Removed two orphaned files (dispatch.rs, params.rs) left over from the refactor that implemented this feature

Test plan

  • Unit tests: cargo test adhoc — 7 tests covering parse, paths, branch name, clone URL, multi-dir name
  • CLI integration test: test_open_adhoc_bare_repo validates end-to-end worktree creation with a random name
  • Full test suite: cargo test — 315 tests pass

Closes #44

🤖 Generated with Claude Code

The owner/repo ad-hoc workspace feature was already implemented in
src/issue/parse/mod.rs (lines 70-78), with full test coverage in
adhoc_tests.rs and the CLI integration test. Remove the orphaned
dispatch.rs (superseded by mod.rs) and params.rs (unused UrlParams
struct) left over from the refactor.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tupe12334 tupe12334 merged commit 3b008fa into main Mar 21, 2026
1 check passed
@tupe12334 tupe12334 deleted the issue-44 branch March 21, 2026 19:33
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.

Add GitLab issue support

1 participant