GitHub CLI 2.94.0
新功能 4 項
gh CLI 終端機直接開討論串
gh CLI 現在能直接在命令列操作 GitHub Discussions(討論區功能,社群提問與閒聊的看板)了,這是預覽版(preview,功能還在測試、之後可能調整)。新增「gh discussion」指令組:list 列出討論串、view 看內容、create 開新討論、edit 編輯,另外「gh discussion comment」可以直接留言或回覆別人的討論。內建的 gh 技能(skill,讓 AI 代理知道怎麼用 gh 指令的說明書)也同步補上這批 discussion 指令和 Issues 2.0 的用法說明。像原本只能用網頁逛的社群留言板,現在終端機也能直接開窗留言。
官方原文
Add gh discussion command set (list, view, create, edit) as a preview by @babakks and @maxbeizer in [#13541](https://github.com/cli/cli/pull/13541)
Add gh discussion comment to comment on and reply to discussions by @babakks in [#13620](https://github.com/cli/cli/pull/13620)
Add gh discussion and Issues 2.0 reference to the gh skill, plus a README note by @BagToad in [#13631](https://github.com/cli/cli/pull/13631)
議題可以分類、拆子任務、互相牽線了
GitHub 的 Issues 2.0(新一代議題系統,議題可以分類、拆子任務、彼此關聯)現在 gh CLI 也支援了:issue 可以標上類型(issue types)、拆成子議題(sub-issues,大任務底下的小任務)、跟其他議題建立關聯(relationships)。像把一張寫滿待辦的便條紙,換成可以分類貼、拆小張、互相牽線的看板,管理大專案的議題終於不用全部擠在一張清單裡。
官方原文
Add Issues 2.0 support: issue types, sub-issues, and relationships by @BagToad in [#13057](https://github.com/cli/cli/pull/13057)
gh skill 系列指令一次補齊
gh skill(技能,讓 AI 代理照著說明書做事的功能包)系列指令更好用了。新增「gh skill list」可以一次看清楚裝了哪些技能。「gh skill install」加上 --all 旗標,能把一個 repository(儲存庫)裡的技能全部裝起來,不用一個一個裝。「gh skill update --all」批次更新時,遇到缺 metadata(描述資訊)的技能會自動跳過、不會卡住整批更新。技能檔案放在比較深的巢狀資料夾裡,以前掃描不到,現在也找得到了。像倉庫裡的工具箱終於有清單可以點名,用 --all 一次裝齊、缺標籤的工具不會卡住盤點,藏在櫃子深處的工具也翻得出來。
官方原文
Add gh skill list to inventory installed agent skills by @tommaso-moro in [#13418](https://github.com/cli/cli/pull/13418)
Add --all flag to gh skill install to install every skill in a repository by @tommaso-moro in [#13471](https://github.com/cli/cli/pull/13471)
Skip skills without metadata when running gh skill update --all by @tommaso-moro in [#13469](https://github.com/cli/cli/pull/13469)
fix(skill): support skill discovery in nested directories by @tommaso-moro in [#13459](https://github.com/cli/cli/pull/13459)
擴充功能別名與 CI 自動安裝小改善
這批是指令別名跟自動化的小改善。「gh extension uninstall」現在也能打成「gh extension remove」,兩個名字都通、不用記兩套指令。CI(持續整合,自動跑測試建置的流程)環境裡官方 extension(擴充功能)現在會自動安裝好,不用額外設定。另外新增一個 terminal-mockup canvas extension(終端機模擬畫布擴充功能,用來產生行銷用的終端機截圖)。其餘還有內部整理與相依套件版本更新,不影響日常操作。像商店把退貨跟退款兩個按鈕合併成一個,怎麼按都通到同一個地方。
官方原文
Alias gh extension uninstall to gh extension remove by @BagToad in [#13599](https://github.com/cli/cli/pull/13599)
Auto-install official extensions in CI by @BagToad in [#13581](https://github.com/cli/cli/pull/13581)
Bump Go to 1.26.4 by @github-actions[bot] in [#13578](https://github.com/cli/cli/pull/13578)
Clean up deferred issue update helper by @BagToad in [#13584](https://github.com/cli/cli/pull/13584)
Add terminal-mockup canvas extension for marketing screenshots by @BagToad in [#13612](https://github.com/cli/cli/pull/13612)
chore(deps): bump golangci/golangci-lint-action from 9.2.0 to 9.2.1 by @dependabot in [#13521](https://github.com/cli/cli/pull/13521)
chore(deps): bump github.com/gdamore/tcell/v2 from 2.13.9 to 2.13.10 by @dependabot in [#13520](https://github.com/cli/cli/pull/13520)
chore(deps): bump github.com/mattn/go-colorable from 0.1.14 to 0.1.15 by @dependabot in [#13572](https://github.com/cli/cli/pull/13572)
chore(deps): bump charm.land/bubbletea/v2 from 2.0.6 to 2.0.7 by @dependabot in [#13595](https://github.com/cli/cli/pull/13595)
chore(deps): bump github/codeql-action from 4.36.0 to 4.36.1 by @dependabot in [#13596](https://github.com/cli/cli/pull/13596)
chore(deps): bump actions/checkout from 6.0.2 to 6.0.3 by @dependabot in [#13597](https://github.com/cli/cli/pull/13597)