gitdog

中文文档
0.2.1发布于 2026/11/04UNLICENSEDES Module构建来源已验证

从您的终端管理git项目,GitHub自动化和API密钥

中文使用文档
文档目录4 节
  1. 使用npx运行
  2. 快速启动
  3. 日常的命令
  4. 在CI中使用

Gitdog

Gitdog CLI

你的GitHub助手。现在到了终端机。

npm version CI npm release Node.js 22.14 or later Gitdog website

Gitdog terminal: connect a project, configure automation and review pending actions

连接存储库,配置问题,讨论和PR自动化,审查 AI操作,并从您的终端或CI管理项目任务。

使用npx运行

需要 node . js 22.14 +. 不需要全局安装。

npx gitdog@latest --help

快速启动

npx gitdog@latest login
npx gitdog@latest github install
npx gitdog@latest github recover
npx gitdog@latest init owner/repo
npx gitdog@latest config set requireApproval true
npx gitdog@latest config set pullRequestReviewsEnabled true
npx gitdog@latest config set requireApprovalForPullRequests true
npx gitdog@latest config push

GitHub应用程序设置只需要一次。一个项目连接现有的GitHub 仓库到git。

日常的命令

任务命令
列表项目npx gitdog@latest projects list
读取自动化设置npx gitdog@latest config get --remote
审查待处理的操作npx gitdog@latest tickets pending
检查代码索引npx gitdog@latest index status
列出团队成员npx gitdog@latest team members
检查使用情况npx gitdog@latest usage summary

使用 npx gitdog@latest --help 浏览命令。添加 --json 为脚本。

在CI中使用

npx gitdog@latest keys create --name ci
npx --yes [email protected] --key-file /path/to/key.json projects list --json
npx gitdog@latest keys revoke KEY_ID --yes

keys create 打印私钥文件的路径。键是项目范围的和 默认为只读;添加 --write 对于设置和票据的删除/恢复。保持关键 从Git中取出文件。


命令参考 · Gitdog · 报告问题

版本与发布记录

gitdog 共发布 6 个版本,首次发布于 2026/11/03;过去 12 个月发布了 6 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.2.1latest2026/11/04今天
0.2.02026/11/03今天
0.1.22026/11/03今天
0.1.12026/11/03今天
0.1.02026/11/03今天
0.0.0-stage2026/11/03今天

关于 gitdog 的常见问题

gitdog 是什么?

从您的终端管理git项目,GitHub自动化和API密钥

如何安装 gitdog?

在项目目录运行 npm install gitdog,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 gitdog,可以用 npx gitdog 直接运行。

gitdog 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/gitdog 是否存在。

gitdog 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

gitdog 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.14.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

gitdog 可以商用吗?

gitdog 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

gitdog 还在维护吗?

最新版本 0.2.1 发布于 2026/11/04(今天);至今共发布 6 个版本,其中过去 12 个月发布了 6 个;首次发布于 2026/11/03。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。