-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
area:workflowDeveloper workflow, commands, rules, skillsDeveloper workflow, commands, rules, skillseffort:largeMore than 4 hours or multi-sessionMore than 4 hours or multi-sessionfeatureNew feature or requestNew feature or request
Description
Context
After --bootstrap (#235) prepares a remote host with the devcontainer image, we still need a way to clone a project repo and start its devcontainer in one command.
Proposal
Support a gh:org/repo[:branch] target syntax in devc-remote.sh:
# Clone fd5, checkout main, init-workspace, compose up, connect
devc-remote.sh ksb-meatgrinder gh:vig-os/fd5
# Clone at specific branch
devc-remote.sh ksb-meatgrinder gh:vig-os/fd5:feature/my-branch
# Existing path still works (current behavior)
devc-remote.sh ksb-meatgrinder:~/Projects/fd5Flow
- Read remote config (
~/.config/devc-remote/config.yamlfrom devc-remote --bootstrap: one-time remote host setup with config file #235) forprojects_dir - Clone
gh:org/repoto<projects_dir>/<repo>(or fetch + checkout if already cloned) - Checkout
:branchif specified, default branch otherwise - Run
init-workspace.shon remote (resolves{{IMAGE_TAG}},{{SHORT_NAME}}templates) - Proceed with existing
compose up+ connect flow
Re-run behavior
- Repo already cloned →
git fetch && git checkout <branch>(no re-clone) - Container already running on the right branch → skip compose restart, just connect
- Different branch requested → checkout, re-init if needed,
compose up
Config interaction
Uses projects_dir from remote config (#235) to determine clone location. Falls back to ~/Projects if no config exists.
Acceptance criteria
-
gh:org/repoclones to<projects_dir>/<repo>on remote -
gh:org/repo:branchchecks out specified branch - Already-cloned repos are fetched, not re-cloned
-
init-workspace.shruns after clone/checkout - Existing
host:pathsyntax continues working - Tests for arg parsing of
gh:syntax
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:workflowDeveloper workflow, commands, rules, skillsDeveloper workflow, commands, rules, skillseffort:largeMore than 4 hours or multi-sessionMore than 4 hours or multi-sessionfeatureNew feature or requestNew feature or request