Skip to content

chore: optimize devcontainer for Codespaces prebuilds#56

Merged
DanWahlin merged 2 commits intomainfrom
devcontainer/prebuild-optimization
Apr 6, 2026
Merged

chore: optimize devcontainer for Codespaces prebuilds#56
DanWahlin merged 2 commits intomainfrom
devcontainer/prebuild-optimization

Conversation

@DanWahlin
Copy link
Copy Markdown
Collaborator

Changes

  • Moves install commands from postCreateCommand to onCreateCommand so they are cached during Codespaces prebuilds, reducing startup time.
  • Removes gh extension install github/gh-copilot since gh copilot is now a built-in command in GitHub CLI v2.88.0+ (docs).

- Move install commands from postCreateCommand to onCreateCommand so
  they are cached during prebuild, reducing codespace startup time.
- Remove gh extension install for gh-copilot since gh copilot is now
  a built-in command in GitHub CLI v2.88.0+.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 6, 2026 22:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Optimizes the devcontainer setup for Codespaces by simplifying the container creation install steps and removing the now-unneeded GitHub CLI Copilot extension install.

Changes:

  • Removes gh extension install github/gh-copilot from onCreateCommand.
  • Keeps Python (pytest) and Node (@github/copilot) installs in onCreateCommand.
Show a summary per file
File Description
.devcontainer/devcontainer.json Removes gh-copilot extension installation from the devcontainer creation command.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

}
},
"onCreateCommand": "pip install pytest && npm install -g @github/copilot && gh extension install github/gh-copilot",
"onCreateCommand": "pip install pytest && npm install -g @github/copilot",
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description says install commands were moved from postCreateCommand to onCreateCommand, but this diff only removes the gh extension install github/gh-copilot portion; there is no postCreateCommand change in this PR. Please update the PR description (or adjust the devcontainer config) so the stated motivation about prebuild caching matches the actual change.

Copilot uses AI. Check for mistakes.
@DanWahlin DanWahlin merged commit 0549a8e into main Apr 6, 2026
3 checks passed
@DanWahlin DanWahlin deleted the devcontainer/prebuild-optimization branch April 8, 2026 19:11
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.

2 participants