Skip to content

feat(runtimes): add @github/copilot CLI - #1

Merged
vegardx merged 1 commit into
mainfrom
feat/add-github-copilot-cli
Jun 9, 2026
Merged

feat(runtimes): add @github/copilot CLI#1
vegardx merged 1 commit into
mainfrom
feat/add-github-copilot-cli

Conversation

@vegardx

@vegardx vegardx commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add @github/copilot to the global npm packages loop, installed alongside @anthropic-ai/claude-code and @openai/codex.
  • Fix the creates: guard from item.split('/')[-1] to {{ item }}. For scoped packages the old form pointed at a node_modules path that never exists (e.g. node_modules/claude-code instead of node_modules/@anthropic-ai/claude-code), so those installs re-ran npm install -g on every play and always reported changed. Using the full package name resolves the real scoped path, restoring idempotency.

The GUI cask github-copilot-app was already present, so no Homebrew change is needed.

Testing

  • ansible-playbook --syntax-check site.yml passes.
  • make lint not run — ansible-lint is not installed on this machine.

Add @github/copilot to the global npm packages loop alongside claude/codex.

Also fix the creates guard to use the full package name; for scoped
packages item.split('/')[-1] pointed at a node_modules path that never
exists (e.g. node_modules/claude-code), so those installs re-ran on
every play. Using {{ item }} resolves the real scoped path.
Copilot AI review requested due to automatic review settings June 9, 2026 09:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the runtimes Ansible role to install the GitHub Copilot CLI via npm and restores idempotency for scoped global npm packages by fixing the creates: guard path.

Changes:

  • Add @github/copilot to the global npm packages install loop.
  • Fix creates: to use the full package name ({{ item }}) so scoped package installs don’t re-run every play.

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

@vegardx
vegardx merged commit 065fa59 into main Jun 9, 2026
1 check passed
@vegardx
vegardx deleted the feat/add-github-copilot-cli branch June 9, 2026 10:06
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