gh 是 GitHub 官方的命令行客户端工具,在此推荐给每一位在参与、想参与到 GitHub 上开源项目的小伙伴。体验异常舒适!

常用的命令包括有:

  • 登陆认证 gh auth login
  • 克隆代码仓库 gh repo clone linuxsuren/api-testing
  • 创建 Fork 仓库 gh repo fork
  • 创建 PR gh pr create

GitHub CLI 发布 2.53.0_github

以下是 2.53.0 的版本更新信息:

  • 为变量获取命令添加了 --json 选项,由 @babakks 在 #9128 中添加
  • 在问题模板中添加了 GH_DEBUG,由 @TWiStErRob 在 #9167 中添加
  • 需要时获取所选仓库的变量关系,由 @williammartin 在 #9256 中实现
  • 将 github.com/hashicorp/go-retryablehttp 从 0.7.5 版本升级到 0.7.7 版本,由 @dependabot 在 #9250 中完成
  • 变更 gh attestation trusted-root 子命令,由 @steiza 在 #9206 中实现
  • 修复了 'gh release create --help' 中的缩进问题,由 @cchristous 在 #9296 中修复
  • 将 actions/attest-build-provenance 从 1.3.2 版本升级到 1.3.3 版本,由 @dependabot 在 #9305 中完成
  • 更新文档以明确 gh repo create 的所有者,由 @jessehouwing 在 #9309 中更新
  • 修复调用 gh pr view --json stateReason 时的恐慌问题,由 @williammartin 在 #9307 中修复
  • 添加了 issue create --editor 命令,由 @notomo 在 #7193 中添加
  • 添加了 pr update-branch 命令,由 @babakks 在 #8953 中添加