diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml new file mode 100644 index 00000000..2c04f58b --- /dev/null +++ b/.github/workflows/winget.yml @@ -0,0 +1,44 @@ +name: Submit release to the WinGet community repository + +on: + release: + types: [published] + +jobs: + publish-winget: + name: Submit to WinGet repository + + # GitHub token permissions needed for winget-create to submit a PR + permissions: + contents: read + pull-requests: write + + # winget-create is only supported on Windows + runs-on: windows-latest + + # winget-create will read the following environment variable to access the GitHub token needed for submitting a PR + # See https://aka.ms/winget-create-token + env: + WINGET_CREATE_GITHUB_TOKEN: ${{ secrets.WINGET_CREATE_GITHUB_TOKEN }} + + steps: + - name: Submit package using wingetcreate + run: | + # Set the package ID based on the release info + $packageId = if (${{ !github.event.release.prerelease }}) { "GitHub.Copilot" } else { "GitHub.Copilot.Prerelease" } + + # Get installer info from release event + $assets = '${{ toJSON(github.event.release.assets) }}' | ConvertFrom-Json + $packageVersion = (${{ toJSON(github.event.release.tag_name) }}) + + # Find the download URLs for the x64 and arm64 installers separately + # This allows overrides to be used so that wingetcreate does not have to guess the architecture from the filename + $installerUrlx64 = $assets | Where-Object -Property name -like '*win32-x64.zip' | Select-Object -ExpandProperty browser_download_url + $installerUrlarm64 = $assets | Where-Object -Property name -like '*win32-arm64.zip' | Select-Object -ExpandProperty browser_download_url + + # Update package using wingetcreate + curl.exe -JLO https://aka.ms/wingetcreate/latest + .\wingetcreate.exe update $packageId ` + --version $packageVersion ` + --urls "$installerUrlx64|x64" "$installerUrlarm64|arm64" ` + --submit diff --git a/README.md b/README.md index 04a0bcab..adaf2415 100644 --- a/README.md +++ b/README.md @@ -35,22 +35,29 @@ We're still early in our journey, but with your feedback, we're rapidly iteratin - (On Windows) **PowerShell** v6 or higher - An **active Copilot subscription**. See [Copilot plans](https://github.com/features/copilot/plans?ref_cta=Copilot+plans+signup&ref_loc=install-copilot-cli&ref_page=docs). -If you have access to GitHub Copilot via your organization of enterprise, you cannot use GitHub Copilot CLI if your organization owner or enterprise administrator has disabled it in the organization or enterprise settings. See [Managing policies and features for GitHub Copilot in your organization](http://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-github-copilot-features-in-your-organization/managing-policies-for-copilot-in-your-organization) for more information. +If you have access to GitHub Copilot via your organization or enterprise, you cannot use GitHub Copilot CLI if your organization owner or enterprise administrator has disabled it in the organization or enterprise settings. See [Managing policies and features for GitHub Copilot in your organization](http://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-github-copilot-features-in-your-organization/managing-policies-for-copilot-in-your-organization) for more information. ### Installation Install globally with npm: + ```bash npm install -g @github/copilot ``` +Install with [WinGet](https://github.com/microsoft/winget-cli): + +```bash +winget install GitHub.Copilot +``` + ### Launching the CLI ```bash copilot ``` -On first launch, you'll be greeted with our adorable animated banner! If you'd like to see this banner again, launch `copilot` with the `--banner` flag. +On first launch, you'll be greeted with our adorable animated banner! If you'd like to see this banner again, launch `copilot` with the `--banner` flag. If you're not currently logged in to GitHub, you'll be prompted to use the `/login` slash command. Enter this command and follow the on-screen instructions to authenticate. @@ -65,15 +72,14 @@ You can also authenticate using a fine-grained PAT with the "Copilot Requests" p ### Using the CLI -Launch `copilot` in a folder that contains code you want to work with. +Launch `copilot` in a folder that contains code you want to work with. -By default, `copilot` utilizes Claude Sonnet 4.5. Run the `/model` slash command to choose from other available models, including Claude Sonnet 4 and GPT-5 +By default, `copilot` utilizes Claude Sonnet 4.5. Run the `/model` slash command to choose from other available models, including Claude Sonnet 4 and GPT-5. Each time you submit a prompt to GitHub Copilot CLI, your monthly quota of premium requests is reduced by one. For information about premium requests, see [About premium requests](https://docs.github.com/copilot/managing-copilot/monitoring-usage-and-entitlements/about-premium-requests). For more information about how to use the GitHub Copilot CLI, see [our official documentation](https://docs.github.com/copilot/concepts/agents/about-copilot-cli). - ## 📢 Feedback and Participation We're excited to have you join us early in the Copilot CLI journey. diff --git a/changelog.md b/changelog.md index 6fd5cf5c..48011837 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,30 @@ +## 0.0.367 - 2025-12-04 + +- GPT-5.1-Codex-Max is now available in GitHub Copilot CLI + +## 0.0.366 - 2025-12-03 + +- Add `infer` property to control custom agent tool visibility +- Add CLI executables to GitHub release artifacts +- Add apply_patch toolchain for OpenAI Codex models + +## 0.0.365 - 2025-11-25 + +- Add `--silent` option to suppress stats output for scripting + +## 0.0.364 - 2025-11-25 + +- Add syntax highlighting for diffs +- Fix light theme markdown rendering + +## 0.0.363 - 2025-11-24 + +- Opus 4.5, GPT-4.1 and GPT-5-Mini are now available in GitHub Copilot CLI +- Image data paste now prioritizes pasting contents of image files instead of their file icons. +- Improved timeline rendering of shell tool names +- Add support for GITHUB_ASKPASS environment variable for authentication +- MCP servers work in `--prompt` mode + ## 0.0.362 - 2025-11-20 - Fix issues with image drag and drop on Windows