Merged
Conversation
Copilot
AI
changed the title
[WIP] Add feature to install GitHub CLI
Add GitHub CLI devcontainer feature
Apr 29, 2026
Agent-Logs-Url: https://github.com/postfinance/devcontainer-features/sessions/b29324d1-c50f-4b17-b36e-471e3541d854 Co-authored-by: Roemer <393641+Roemer@users.noreply.github.com>
Agent-Logs-Url: https://github.com/postfinance/devcontainer-features/sessions/b29324d1-c50f-4b17-b36e-471e3541d854 Co-authored-by: Roemer <393641+Roemer@users.noreply.github.com>
87780d9 to
bb74b2d
Compare
Roemer
approved these changes
Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new
github-clifeature that installs the GitHub CLI (gh) in devcontainers, following the same patterns as the existinggitlab-cliandgoreleaserfeatures.Changes
features/src/github-cli/— New feature implementation:installer.go— Resolves versions via GitHub API tags, downloadsgh_<version>_linux_<arch>.tar.gzfrom GitHub releases, extracts and installs to/usr/local/bin/gh; supportsHandleGitHubOverridefor corporate proxy/cache setupsinstall.sh— Shell entrypoint delegating to the compiled Go binarydevcontainer-feature.json— Feature metadata withversionanddownloadUrloptionsNOTES.md/README.md— Compatibility and usage docsfeatures/test/github-cli/— Test suite covering Debian 11/12, Ubuntu 24.04, and Alpineoverride-all.env— AddedGITHUB_CLI_DOWNLOAD_URLentry for per-feature URL overrideUsage