Skip to content

Add support for github cli#4404

Open
Symb0x76 wants to merge 4 commits intomarticliment:mainfrom
Symb0x76:main
Open

Add support for github cli#4404
Symb0x76 wants to merge 4 commits intomarticliment:mainfrom
Symb0x76:main

Conversation

@Symb0x76
Copy link

  • I have read the contributing guidelines, and I agree with the Code of Conduct.
  • Have you checked that there aren't other open pull requests for the same changes?
  • Have you tested that the committed code can be executed without errors?
  • This PR is not composed of garbage changes used to farm GitHub activity to enter potential Crypto AirDrops.
    Any user suspected of farming GitHub activity with crypto purposes will get banned. Submitting broken code wastes the contributors' time, who have to spend their free time reviewing, fixing, and testing code that does not even compile breaks other features, or does not introduce any useful changes. I appreciate your understanding.

This PR improves the GitHubCLI manager release workflow end-to-end:

  • Uses GitHub search capabilities and adds API fallback (gh api search/repositories) when needed.
  • Filters search results to repositories that actually have releases.
  • Detects device architecture and prioritizes matching release assets (x64/x86/arm64) using runtime hardware info.
  • Automatically installs directly installable assets (.exe, .msi, .msix, .msixbundle, .appx).
  • Falls back to downloading non-directly-installable assets to the user's Downloads directory.
  • Keeps release-source fallback (--archive zip) when no named assets exist.
  • Preserves/extends elevation and interactive handling for installer launch.

Additional stability fixes included in this branch:

  • Improved icon download error handling/logging to avoid noisy SSL/socket stack traces.

Closes #4373

- Introduced GitHubCli manager to handle package operations for GitHub repositories.
- Implemented functionality to track repositories, find packages, and manage installations.
- Added helper classes for package details and operations specific to GitHub CLI.
- Updated project references and solution structure to include the new GitHub CLI manager.
- Modified settings to accommodate tracked repositories for GitHub CLI.
- Updated application version in the manifest.
Copilot AI review requested due to automatic review settings February 12, 2026 04:30
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

This PR adds a new GitHub CLI–backed package manager to UniGetUI’s package engine so users can search GitHub repositories, track them, and download/install latest release assets via gh, while also reducing noisy icon-download errors.

Changes:

  • Introduces a new UniGetUI.PackageEngine.Managers.GitHubCli manager with release search, release-asset selection (arch-aware), download, and optional auto-install behavior.
  • Wires the new manager into the UI/settings page and package engine manager registry.
  • Improves icon download handling (Content-Type handling + less noisy network/I/O error logging) and bumps build/version metadata.

Reviewed changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/WindowsPackageManager.Interop/ExternalLibraries.WindowsPackageManager.Interop.csproj Uses $(TargetPlatformVersion) for CsWinRT metadata selection.
src/UniGetUI/app.manifest App manifest version bump to 3.3.7.1.
src/UniGetUI/Pages/SettingsPages/ManagersPages/PackageManager.xaml.cs Adds GitHub CLI manager to settings navigation type mapping.
src/UniGetUI.sln Adds new GitHub CLI manager project to the solution + configs.
src/UniGetUI.PackageEngine.PackageEngine/UniGetUI.PackageEngine.PEInterface.csproj References the new GitHub CLI manager project.
src/UniGetUI.PackageEngine.PackageEngine/PEInterface.cs Registers GitHubCli instance and includes it in the Managers array.
src/UniGetUI.PackageEngine.Managers.GitHubCli/UniGetUI.PackageEngine.Managers.GitHubCli.csproj New project for the GitHub CLI manager implementation.
src/UniGetUI.PackageEngine.Managers.GitHubCli/GitHubCli.cs Core GitHub CLI manager logic (search, tracked repos, releases, gh invocations).
src/UniGetUI.PackageEngine.Managers.GitHubCli/Helpers/GitHubCliPkgDetailsHelper.cs Package details + icon sourcing from GitHub API responses.
src/UniGetUI.PackageEngine.Managers.GitHubCli/Helpers/GitHubCliPkgOperationHelper.cs Download/install/uninstall/update operation parameters and post-processing.
src/UniGetUI.Core.Settings/SettingsEngine_Names.cs Adds settings key for tracked GitHub CLI repositories.
src/UniGetUI.Core.IconStore/IconCacheEngine.cs Improves icon download robustness and logging (Content-Type + exception handling).
src/UniGetUI.Core.Data/CoreData.cs Build number bump.
src/SharedAssemblyInfo.cs Assembly version/file version bump to 3.3.7.1.
scripts/BuildNumber Build number bump.
UniGetUI.iss Updates version info and changes uninstall display name.
.gitignore Ignores *.code-workspace.

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

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.

[FEATURE REQUEST] Add support for github-cli

1 participant