⌕
GitHub CLI

GitHub CLI 2.105.0

GitHub 官方命令列工具,在終端機管理倉庫與 PR。

绿色版WindowsMIT
发布 2026-11-18 · 核验 2026-11-24
立即下载

软件简介

GitHub CLI(gh)在終端機完成建立倉庫、開 PR、看 Issue、跑 Actions 等操作,可寫腳本自動化 GitHub 流程。

功能特点

  • 終端機管理 PR 與 Issue
  • Actions 狀態查詢
  • 可寫腳本自動化
  • 支援 GitHub Enterprise
更新日志 · 2.105.0

What's Changed

Subscribe to GitHub Event Streams with gh event (preview)

The new gh event command set lets agents, integrations, and scripts wait for pull request changes instead of polling GitHub:

```shell

Wait for a review event

gh event listen --resource https://github.com/OWNER/REPO/pull/NUMBER --event com.github.pull_request.review.submitted.v1 --timeout 30m

Wait for a check suite completion event

gh event listen --resource https://github.com/OWNER/REPO/pull/NUMBER --event com.github.pull_request.check_suite.status.changed.v1 --jq .data.conclusion

List active event subscriptions

gh event subscription list

```

By default, gh event listen exits after the first event. Use --count to wait for several events or --follow to keep listening. Events are printed as CloudEvent JSON objects, with data.api_url pointing to the resource that changed.

Supported events include submitted reviews, pull request state and head changes, merge conflicts, and completed check suites. The subscription create, list, view, and delete commands manage subscriptions directly.

> [!NOTE]

> GitHub Event Streams is in preview. Join the wait list, read the announcement, or see the Event Streams documentation.

What's Changed

✨ Features

  • Add a server-sent events reader and Event Subscriptions API client by @babakks in #15071
  • Add gh event listen to wait for pull request events without polling by @babakks in #15072
  • Add gh event subscription list by @babakks in #15073
  • Add gh event subscription create by @babakks in #15074
  • Add gh event subscription view by @babakks in #15075
  • Add gh event subscription delete by @babakks in #15076
  • Suggest gh event listen to agents using gh pr and gh api by @babakks in #15077
  • Support check suite events and suggest them from gh run view and gh run watch by @babakks in #15081

🐛 Fixes

  • fix(event listen): print each event without waiting for the next heartbeat by @babakks and @iancanderson in #15079
  • fix(event listen): report deleted subscriptions clearly by @babakks in #15080
  • fix(event): improve stream framing, Retry-After handling, evals, and regression coverage by @babakks in #15083

📚 Docs & Chores

  • Make issue-triage formatting checks nonblocking by @BagToad in #15052
  • Add event-driven agent evals, gh skill guidance, and preview documentation by @babakks in #15078

:dependabot: Dependencies

  • chore(deps): bump golang.org/x/text from 0.43.0 to 0.44.0 by @dependabot in #15049
  • chore(deps): bump golang.org/x/term from 0.47.0 to 0.48.0 by @dependabot in #15048
  • chore(deps): bump golang.org/x/crypto from 0.58.0 to 0.59.0 by @dependabot in #15064
  • chore(deps): bump zod from 4.3.6 to 4.6.6 in evals by @dependabot in #15086
  • chore(deps): bump @hono/node-server from 2.1.5 to 2.1.9 in evals by @dependabot in #15085
  • chore(deps): bump hono from 4.13.13 to 4.13.19 in evals by @dependabot in #15084

Full Changelog: https://github.com/cli/cli/compare/v2.104.0...v2.105.0

下载地址

官方下载直接指向软件作者的发布地址;网盘镜像为同一文件的转存,下载后可用 SHA-256 核对(官方未提供校验值的文件除外)。

  • Windows x64 · 安裝包 MSIgh_2.105.0_windows_amd64.msi · 14.8 MB
  • Windows x64 · 绿色版 ZIP 绿色免安装gh_2.105.0_windows_amd64.zip · 14.5 MB

相关推荐