Skip to content

MAINT set up GitHub Copilot CLI in devcontainer#1431

Open
romanlutz wants to merge 9 commits intoAzure:mainfrom
romanlutz:romanlutz/devcontainer-gh-copilot-cli
Open

MAINT set up GitHub Copilot CLI in devcontainer#1431
romanlutz wants to merge 9 commits intoAzure:mainfrom
romanlutz:romanlutz/devcontainer-gh-copilot-cli

Conversation

@romanlutz
Copy link
Contributor

GitHub Copilot CLI appears to be more convenient in many situations. This change adds it into our devcontainer so that it's available inside.

This can be used quite easily with the following button in the GitHub Copilot dropdown in VS Code

image

and just renders inline

image

which can be split to the right just like the GitHub Copilot Chat view.

Copilot AI review requested due to automatic review settings March 2, 2026 15:00
Copy link
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

Adds GitHub Copilot tooling to the devcontainer so Copilot is available inside the containerized dev environment.

Changes:

  • Install @github/copilot globally in the devcontainer image.
  • Add github.copilot and github.copilot-chat to the devcontainer’s VS Code extension list.
  • Update frontend/package-lock.json (includes a Rollup version change).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
frontend/package-lock.json Updates locked frontend dependencies (notably Rollup + platform-specific Rollup binaries).
.devcontainer/devcontainer.json Adds Copilot and Copilot Chat extensions to the container’s VS Code setup.
.devcontainer/Dockerfile Installs Copilot CLI via npm during devcontainer image build.
Files not reviewed (1)
  • frontend/package-lock.json: Language not supported

Copilot AI review requested due to automatic review settings March 2, 2026 19:17
Copy link
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

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • frontend/package-lock.json: Language not supported

Comment on lines 78 to 82
"integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@babel/code-frame": "^7.27.1",
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

frontend/package-lock.json has lockfile churn (multiple packages flipping the generated "peer": true metadata) without any corresponding package.json change. Unless you intended to update the lockfile format, it would be better to revert this to keep the PR focused and avoid noisy diffs/merge conflicts; if it is intended, please regenerate the lockfile in a single consistent npm version/environment and note the rationale in the PR.

Copilot uses AI. Check for mistakes.
romanlutz and others added 4 commits March 2, 2026 14:41
Reset the lockfile to main and re-ran npm install to eliminate
spurious metadata churn (libc fields, peer flag noise) that was
introduced by a different npm version. The lockfile now has a
minimal, consistent diff.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@romanlutz romanlutz force-pushed the romanlutz/devcontainer-gh-copilot-cli branch from 2118152 to 1138bda Compare March 2, 2026 22:41
Copilot AI review requested due to automatic review settings March 3, 2026 00:42
Copy link
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

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • frontend/package-lock.json: Language not supported

Comment on lines +4024 to +4028
"resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz",
"integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==",
"dev": true,
"license": "MIT"
"license": "MIT",
"peer": true
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

This PR is about devcontainer Copilot CLI setup, but frontend/package-lock.json is being regenerated with widespread metadata-only changes (e.g., toggling/relocating peer: true) without any corresponding frontend/package.json change. If this lockfile churn isn’t required for the devcontainer feature, please revert it to reduce merge conflicts/noise; if it is required, document what tool/version change necessitated re-locking.

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings March 3, 2026 05:01
Copy link
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

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

Files not reviewed (1)
  • frontend/package-lock.json: Language not supported

Comment on lines 68 to +71
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g npm@latest \
&& npm install -g @github/copilot \
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

npm install -g @github/copilot is unpinned, so the devcontainer image contents can change from build to build (and potentially break unexpectedly). Please pin @github/copilot to an explicit version (or otherwise make this deterministic, e.g., via a build arg) so container rebuilds are predictable.

Suggested change
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g npm@latest \
&& npm install -g @github/copilot \
ARG COPILOT_VERSION=1.0.0
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g npm@latest \
&& npm install -g @github/copilot@${COPILOT_VERSION} \

Copilot uses AI. Check for mistakes.
Comment on lines +87 to +89
"orta.vscode-jest",
"github.copilot",
"github.copilot-chat"
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

PR title/description talk about adding the Copilot CLI, but this change installs the VS Code Copilot extensions (github.copilot, github.copilot-chat). If the intent is to add extensions (not the CLI), please align the PR title/description accordingly; if the intent is truly CLI usage, please add/verify the CLI installation and document how to invoke it inside the container.

Copilot uses AI. Check for mistakes.
romanlutz and others added 2 commits March 2, 2026 21:10
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 3, 2026 05:29
Copy link
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

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