GitHub CLI 2.85.0
新功能 3 項
瀏覽網頁時可直接切到 Actions
想從終端機直接看 GitHub Actions(自動執行測試、建置或部署工作的服務),現在 gh browse 多了一個 --actions 旗標(flag,附在指令後改變行為的選項)。它讓瀏覽指令能指定開啟 Actions 頁面,不必先進專案首頁再手動切換分頁。公告只說新增這個旗標,沒有承諾改變工作流程的內容或結果。就像電梯多了一顆直達地下停車場的按鈕:目的地沒變,只是少按幾次樓層鍵。
官方原文
Add gh browse --actions flag by @rneatherway in https://github.com/cli/cli/pull/12091
可用 Git remote 名稱指定預設專案
你設定 gh repo set-default 的預設專案時,現在可以使用 Git remote(遠端連線名稱,例如 origin)名稱來指定。這讓已經替同一份程式碼設好多個遠端位置的人,可以沿用自己看得懂的名稱來選擇預設目標;公告沒有說會自動替你新增或改寫 remote。就像寄件簿裡已有「公司」和「個人」兩個收件人標籤,現在可直接挑標籤,不必再重抄完整地址。
官方原文
feat: allow git remote names in gh repo set-default by @majiayu000 in https://github.com/cli/cli/pull/12377
@majiayu000 made their first contribution in https://github.com/cli/cli/pull/12377
發行流程與底層相依套件完成維護
一般使用者不需要調整任何指令,但這版更新了 OAuth、簽章、建置驗證與多個 Go 相依套件,並整理 CI(持續整合,自動檢查與打包程式的流程)的發行工作:升級 GoReleaser、更新 Azure Code Signing、替各建置工作加標籤、啟用 noop linter(不執行檢查工作的檢查器),以及補上 Windows 建立暫存標籤時的 shell 指定。擴充功能工作流程範本也更新 actions/checkout。公告沒有宣稱新增終端機功能,因此可把它看成讓出貨工廠持續換好零件的維護。就像倉庫更新封條機、分揀規則與零件,寄出的包裹類型不變,但流程有人持續照料。
官方原文
chore: upgrade to cli/oauth@v1.2.1 by @babakks in https://github.com/cli/cli/pull/12337
ci: upgrade to GoReleaser v2 by @babakks in https://github.com/cli/cli/pull/12318
CI: Update Azure Code Signing client to 1.0.95 by @BagToad in https://github.com/cli/cli/pull/12424
CI: Update Azure Code Signing endpoint URL by @BagToad in https://github.com/cli/cli/pull/12425
ci: tag per build job by @babakks in https://github.com/cli/cli/pull/12428
CI: Add shell specification for temporary tag creation on Windows by @BagToad in https://github.com/cli/cli/pull/12429
Bump sigstore-go to v1.1.4 by @williammartin in https://github.com/cli/cli/pull/12289
Update actions/checkout to v6 in extension workflow templates by @fchimpan in https://github.com/cli/cli/pull/12393
ci: enable noop linters by @babakks in https://github.com/cli/cli/pull/12440
chore(deps): bump golang.org/x/sync from 0.18.0 to 0.19.0 by @dependabot[bot] in https://github.com/cli/cli/pull/12274
chore(deps): bump golang.org/x/text from 0.31.0 to 0.32.0 by @dependabot[bot] in https://github.com/cli/cli/pull/12281
chore(deps): bump golang.org/x/term from 0.37.0 to 0.38.0 by @dependabot[bot] in https://github.com/cli/cli/pull/12282
chore(deps): bump github.com/spf13/cobra from 1.10.1 to 1.10.2 by @dependabot[bot] in https://github.com/cli/cli/pull/12255
chore(deps): bump github.com/gdamore/tcell/v2 from 2.13.1 to 2.13.2 by @dependabot[bot] in https://github.com/cli/cli/pull/12262
chore(deps): bump golangci/golangci-lint-action from 9.1.0 to 9.2.0 by @dependabot[bot] in https://github.com/cli/cli/pull/12252
chore(deps): bump github.com/gdamore/tcell/v2 from 2.13.2 to 2.13.4 by @dependabot[bot] in https://github.com/cli/cli/pull/12302
chore(deps): bump golang.org/x/crypto from 0.45.0 to 0.46.0 by @dependabot[bot] in https://github.com/cli/cli/pull/12300
chore(deps): bump actions/attest-build-provenance from 3.0.0 to 3.1.0 by @dependabot[bot] in https://github.com/cli/cli/pull/12339
chore(deps): bump github.com/yuin/goldmark from 1.7.13 to 1.7.16 by @dependabot[bot] in https://github.com/cli/cli/pull/12452
@fchimpan made their first contribution in https://github.com/cli/cli/pull/12393
修正 1 項
專案資料異常不再讓工具直接中斷
你處理 GitHub 專案資料時,遇到 null project items(空值的專案項目,代表資料位置存在但沒有可讀內容)不會再觸發 panic(程式無法自行處理錯誤而突然中止)。這是既有處理流程的修復,不是新增專案管理功能。同一版也修正安裝指南裡 Debian CLI 套件連結,讓讀者前往正確位置。就像清單裡有一格空白時,工作人員會跳過那格繼續辦事,而入口指示牌也改成正確方向。
官方原文
Fix Debian CLI package link in installation guide by @andyfeller in https://github.com/cli/cli/pull/12291
fix: prevent panic when processing null project items by @chrishenzie in https://github.com/cli/cli/pull/12324
@chrishenzie made their first contribution in https://github.com/cli/cli/pull/12324