GitHub CLI 2.86.0
新功能 2 項
用 gh 直接安裝與啟動 Copilot CLI
現在你想在終端機使用 Copilot CLI(讓你透過文字指令使用 Copilot 的工具)時,可以直接輸入 gh copilot;電腦尚未安裝它就會先詢問你是否安裝,裝好後接著啟動。若你已經知道要交代什麼,也能在後面接上參數與旗標,gh 會原封不動轉交給 Copilot CLI 執行。這不是讓 Copilot 多了新本事,而是把原本要另外找安裝程式、再切換指令的兩段路接起來,像在車站同一個窗口買票後直接上車。
官方原文
gh copilot will prompt to install, then run Copilot CLI
gh copilot <args> will execute the Copilot CLI, forwarding any arguments and flags
gh copilot: add native copilot command to execute/install copilot cli by @devm33 in https://github.com/cli/cli/pull/12444
Fix Windows asset URL in copilot command tests by @babakks in https://github.com/cli/cli/pull/12500
可清除特定分支的全部快取,建立重複 PR 會即時擋下
現在你要清理某個 ref(Git 用來指向分支或版本的名稱)留下的快取(把先前結果暫存、下次直接使用的資料)時,gh cache delete 可以一次刪掉該 ref 的所有快取,不必逐筆處理。建立 Pull Request(PR,把程式修改送人審核的請求)時,如果 head 與 base ref 相同,gh pr create 也會直接報錯;同一個起點與目標沒有可合併的差異,早點停下比建立後才發現更省事。貢獻指南同時改得更清楚,並記錄了兩位首次貢獻者。像整理倉庫時按區清空舊紙箱,門口也先攔住要把同一份文件送給自己的表單。
官方原文
gh cache delete: allow for delete all caches for a ref by @davidspek in https://github.com/cli/cli/pull/12101
gh pr create: error when head and base refs are identical in pr create by @majiayu000 in https://github.com/cli/cli/pull/12376
Update contributing guidelines for clarity by @BagToad in https://github.com/cli/cli/pull/12505
@devm33 made their first contribution in https://github.com/cli/cli/pull/12444
@davidspek made their first contribution in https://github.com/cli/cli/pull/12101