create_codespace_in_repo
Create a cloud-based development environment for a GitHub repository, with options for branch, machine type, and dev container configuration.
Instructions
Create a codespace in a repository for the authenticated user. Docs: https://docs.github.com/en/rest/codespaces/codespaces#create-a-codespace-in-a-repository
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Git ref (branch/tag/SHA) to base the codespace on. | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner (user or organization login) | |
| machine | No | Machine type (e.g. "basicLinux32gb"). | |
| location | No | Preferred Azure region (e.g. "WestUs2"). | |
| display_name | No | Human-readable name for the codespace. | |
| devcontainer_path | No | Path to devcontainer.json inside the repo. | |
| working_directory | No | Working directory inside the codespace. |