Coder.comC
Coder.com6mo ago
2 replies
Jason Overmier

Auto-Clone GitHub Repo on Workspace Creation (with GitHub Auth)

Request:
Add support for automatically cloning a GitHub repository (including private repos) when a new workspace is created, if the user authenticated with GitHub.

Details:
- Use the user's GitHub token from OAuth to clone the repo.
- Allow specifying the repo URL, branch, and target directory in the workspace template or coder.yaml.
- Optionally support running an initialization script after cloning (e.g.,
pnpm install
, start dev server).

Stretch Goal:
Support cloning multiple repositories into the workspace with separate paths and branches defined per repo.

Why it matters:
This would streamline onboarding and setup, ensuring all developers start with the correct codebase and configuration without manual steps.
Was this page helpful?