GitHub Development Environment (github-dev)
Installs the GitHub CLI (gh) and the essential GitHub VS Code platform extensions (Pull Requests & Issues, GitHub Actions, RemoteHub). Automatically authenticates gh if a token is available in the environment.
AI assistant: For GitHub Copilot Chat and the shared commit-message / PR-description generation instructions, use
copilot-devalongside this feature.
With Copilot:
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
ghVersion | string | latest | GitHub CLI version to install (e.g. 2.50.0 or latest) |
What Gets Installed
Section titled “What Gets Installed”GitHub CLI (gh)
Section titled “GitHub CLI (gh)”Installed from GitHub Releases. Supports x86_64, aarch64, and armv7l.
Common uses inside the devcontainer:
VS Code Extensions
Section titled “VS Code Extensions”| Extension | Purpose |
|---|---|
github.vscode-pull-request-github | PR and issue management inside VS Code |
github.vscode-github-actions | GitHub Actions workflow editor with validation |
github.remotehub | Browse remote GitHub repositories without cloning |
ms-vscode.remote-repositories | Open and work on remote repositories without cloning (companion to RemoteHub) |
Authentication
Section titled “Authentication”Auto-auth via token (recommended)
Section titled “Auto-auth via token (recommended)”Set GH_TOKEN (or GITHUB_TOKEN) in your environment and gh will authenticate automatically on shell startup — no manual gh auth login needed.
Local / DevPod: add to your devcontainer.json:
Then set GH_TOKEN on your host machine (export GH_TOKEN=ghp_... in your shell profile).
GitHub Codespaces: GITHUB_TOKEN is injected automatically — gh is authenticated with no extra configuration.
CI/CD: set GH_TOKEN as a repository or organization secret.
Use dotfiles-sync to bring your SSH keys into the container.
Manual
Section titled “Manual”Version History
Section titled “Version History”- v1.0.5: Extract Copilot Chat extension and generation instructions into the standalone
copilot-devfeature (breaking change — addcopilot-devto yourdevcontainer.jsonif you relied on Copilot being bundled here). - v1.0.4: Add shared Copilot Chat pull-request title & description instruction.
- v1.0.3: Add shared Copilot Chat commit-message instruction (Conventional Commits + gitmoji).
- v1.0.2: Remove deprecated
github.copilotextension. Addms-vscode.remote-repositories. - v1.0.0: Initial release.