Skip to content

Add GitHub CLI devcontainer feature#50

Merged
Roemer merged 4 commits intomainfrom
copilot/create-feature-install-github-cli
Apr 30, 2026
Merged

Add GitHub CLI devcontainer feature#50
Roemer merged 4 commits intomainfrom
copilot/create-feature-install-github-cli

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 29, 2026

Adds a new github-cli feature that installs the GitHub CLI (gh) in devcontainers, following the same patterns as the existing gitlab-cli and goreleaser features.

Changes

  • features/src/github-cli/ — New feature implementation:

    • installer.go — Resolves versions via GitHub API tags, downloads gh_<version>_linux_<arch>.tar.gz from GitHub releases, extracts and installs to /usr/local/bin/gh; supports HandleGitHubOverride for corporate proxy/cache setups
    • install.sh — Shell entrypoint delegating to the compiled Go binary
    • devcontainer-feature.json — Feature metadata with version and downloadUrl options
    • NOTES.md / README.md — Compatibility and usage docs
  • features/test/github-cli/ — Test suite covering Debian 11/12, Ubuntu 24.04, and Alpine

  • override-all.env — Added GITHUB_CLI_DOWNLOAD_URL entry for per-feature URL override

Usage

"features": {
    "ghcr.io/postfinance/devcontainer-features/github-cli:1": {
        "version": "latest"
    }
}

Copilot AI linked an issue Apr 29, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add feature to install GitHub CLI Add GitHub CLI devcontainer feature Apr 29, 2026
Copilot AI requested a review from Roemer April 29, 2026 15:58
@Roemer Roemer force-pushed the copilot/create-feature-install-github-cli branch from 87780d9 to bb74b2d Compare April 30, 2026 15:07
@Roemer Roemer marked this pull request as ready for review April 30, 2026 15:14
@Roemer Roemer merged commit 0b3a779 into main Apr 30, 2026
35 checks passed
@Roemer Roemer deleted the copilot/create-feature-install-github-cli branch April 30, 2026 15:24
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.

Create a feature that installs GitHub CLI

2 participants