GitHub CLI 2.83.0
新功能 4 項
發行版本清單可辨認不可變版本
現在你用 gh release list 取得 JSON(方便其他程式讀取的固定格式資料)時,會多看到 isImmutable 欄位。它會標示這個發行版本是否不可變,也就是發出去後不該再被修改。若你用指令自動檢查版本或串接部署流程,就能先辨認哪些版本要當成定稿處理,少把仍可變動的版本和正式封存版混在一起。這像圖書館替每本書標上「可借閱」或「館藏定本」,一眼就知道哪本不能隨意改頁。
官方原文
Add isImmutable to release list JSON output by @babakks in https://github.com/cli/cli/pull/12064
建立代理任務時可指定自訂代理
現在建立代理任務時,可以在 gh agent-task create 加上 --custom-agent 或 -a,指定要交給哪個自訂代理(替你執行特定工作的自動助手)。以前建立任務時不能在這一步選它;現在你可直接把適合的代理派去做對的工作,少一道建立後再調整的手續。這像寄件時就把信投進正確的專用信箱,不必先送到總收發室再轉寄。
官方原文
gh agent-task create: support --custom-agent/-a flag by @BagToad in https://github.com/cli/cli/pull/12068
刪除倉庫前多一層提醒,也可還原 PR
現在你執行 gh repo delete --yes 卻沒有指定倉庫時,指令會提醒 --yes 被忽略,而不是讓你以為已略過確認。另新增 gh pr revert,可替一個 pull request(PR,把程式修改送來審查與合併的提案)建立反轉那次修改的操作。前者讓刪除前的判斷更清楚,後者讓已合併的改動有一條回頭路。這像拆房前先確認地址,裝錯零件後也能照說明把它換回來。
官方原文
💡 (gh repo delete) Add warning when --yes is ignored without a repository, Closes: #12033 by @Shion1305 in https://github.com/cli/cli/pull/12039
feat: implement gh pr revert by @lucasmelin in https://github.com/cli/cli/pull/8826
@lucasmelin made their first contribution in https://github.com/cli/cli/pull/8826
說明文件更準確,內部檢查與相依套件更新
現在 run list、release create、api、gh pr checks、Linux Homebrew 與 gh issue develop 的說明更清楚或修正了錯字,讓你較容易找到 PR 檢查、輸入欄位與輪詢間隔等用法。底層也新增基本 lint(自動檢查程式問題的工具)、調整漏洞掃描與格式檢查,移除過時的 Go 建置標記,並更新 Go、檢查工具與多個相依套件。這些多屬內部維護,未宣稱改變指令功能;它們讓說明與開發防線同步整理。這像把使用手冊校正、保養工具箱並換掉舊零件,日常操作更少踩到小坑。
官方原文
chore: add basic linters by @babakks in https://github.com/cli/cli/pull/12084
CI: Update lint govulncheck to use source mode by @BagToad in https://github.com/cli/cli/pull/12089
chore: add workflow_dispatch to govulncheck triggers by @babakks in https://github.com/cli/cli/pull/12085
Exclude third-party from Golangci-lint formatting paths by @babakks in https://github.com/cli/cli/pull/12058
Apply go fix to remove deprecated // +build tags by @babakks in https://github.com/cli/cli/pull/12056
Bump Golangci-lint to v2.6.0 by @babakks in https://github.com/cli/cli/pull/12049
Mention pr checks in run list docs by @babakks in https://github.com/cli/cli/pull/12050
Fix typo in comment for gh issue develop branch checkout command by @jonzfisher in https://github.com/cli/cli/pull/12042
Improve docstring for release-create by @bdehamer in https://github.com/cli/cli/pull/11945
Improve api command docs around --input and --field by @babakks in https://github.com/cli/cli/pull/12062
Fix --interval flags docs in gh pr checks by @2003Aditya in https://github.com/cli/cli/pull/12053
Bump Go to 1.25.3 by @github-actions[bot] in https://github.com/cli/cli/pull/11926
chore(deps): bump github.com/cli/go-gh/v2 from 2.12.2 to 2.13.0 by @dependabot[bot] in https://github.com/cli/cli/pull/12095
Update Go toolchain version to 1.24.9 by @BagToad in https://github.com/cli/cli/pull/12054
chore(deps): bump golang.org/x/text from 0.29.0 to 0.30.0 by @dependabot[bot] in https://github.com/cli/cli/pull/11973
chore(deps): bump golang.org/x/crypto from 0.42.0 to 0.43.0 by @dependabot[bot] in https://github.com/cli/cli/pull/11974
chore(deps): bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in https://github.com/cli/cli/pull/12031
chore(deps): bump actions/download-artifact from 5 to 6 by @dependabot[bot] in https://github.com/cli/cli/pull/12032
chore(deps): bump github.com/rivo/tview from 0.0.0-20250625164341-a4a78f1e05cb to 0.42.0 by @dependabot[bot] in https://github.com/cli/cli/pull/12000
chore(deps): bump goreleaser/goreleaser-action from 6.3.0 to 6.4.0 by @dependabot[bot] in https://github.com/cli/cli/pull/11509
chore(deps): bump mislav/bump-homebrew-formula-action from 3.4 to 3.6 by @dependabot[bot] in https://github.com/cli/cli/pull/11750
@jonzfisher made their first contribution in https://github.com/cli/cli/pull/12042
@2003Aditya made their first contribution in https://github.com/cli/cli/pull/12053
修正 2 項
大型 Gist 檔案可正常查看與編輯
現在較大的 Gist(GitHub 上用來分享程式片段或文字檔的小型貼文)檔案,也能用指令查看與編輯。這是修復既有功能,不是新增另一種檔案服務;重點是原本因檔案較大而卡住的讀取與修改流程恢復可用。若你把長設定檔、記錄或程式碼放在 Gist,就不用為了大小另找工具處理。這像原本塞不進影印機的大張圖紙,現在能攤平後正常閱讀與修改。
官方原文
fix(gist): add support for editing & viewing large files by @luxass in https://github.com/cli/cli/pull/11761
驗證發行證明遇到 Sigstore 暫時不可用仍可運作
現在 gh attestation verify 驗證發行版本的 attestation(用來證明檔案來源與建立過程的簽署證明)時,即使 Sigstore 的 Public Good Instance 暫時無法使用,也能正常運作。指令同時改用 release 作為發行版本驗證的固定識別值。這是讓既有驗證流程在外部驗證服務短暫不可用時更可靠,不代表跳過驗證。這像查驗包裹封條時,主要櫃台暫時關閉,仍有正確的查驗方式可接手。
官方原文
Fix gh attestation verify to work when Public Good Instance of Sigstore is unavailable by @Copilot in https://github.com/cli/cli/pull/11989
Use "release" sentinel value for release attestation verification by @Copilot in https://github.com/cli/cli/pull/11991