dsh-ci-cd-bot
DSH Web UI plugin: listens to GitHub issues/PRs across the account's repositories, auto-fixes issues whose repos are checked out locally, and turns PRs / feature requests / other items into a review-and-run queue with one-click agent execution and push.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:bkMoon1024/dsh-ci-cd-bot说明文档
阅读完整 README ↗dsh-ci-cd-bot
DSH Web UI 插件 —— 自动监听 GitHub 账户仓库的 issue / PR:本地工作区仓库的故障 issue 自动修复并推送,PR、功能添加、非故障事项进入「CI/CD」面板清单,一键选择后自动实现 / 审查 / 推送。
English · 中文
它做什么
| 事项 | 处置 |
|---|---|
| 故障 issue(bug),仓库在本地工作区 | 全自动:agent 在仓库 checkout 中修复并自测 → 插件提交推送(可自动开 PR)→ 回复 issue |
| 功能添加(feature) | 进入面板清单 → 点击「处理」→ agent 实现 → 推送 → 回复 issue |
| 非故障事项(question / 维护) | 进入面板清单 → 有本地 checkout 则实现并推送;否则 agent 起草回复并评论 |
| PR | 进入面板清单 → 点击「审查」→ 拉取 diff → agent 审查 → 按结论自动提交 APPROVE / REQUEST_CHANGES / COMMENT,approve 且可合并时自动合并(可配置) |
每次执行都是真实 agent 会话(保留在会话列表中,可全程查看)。git 分支 / 提交 / 推送由插件统一执行,确定性可控;推送策略可配为「自动」或「面板确认」。
工作原理
宿主半区每 N 分钟(可配置)轮询 GitHub:列出账户仓库 → 按水位增量拉取各仓库近期更新的 issue / PR(首轮只回填最近几天)→ 按标签规则 + 标题/正文关键词分类 → 把仓库匹配到「配置的扫描根目录 ∪ DSH 工作区」下的本地 checkout。新出现的本地 bug 自动入队执行;其余全部进面板清单,等待用户选择。
agent 运行走官方 headless 模式——ctx.agents.create({ meta: { cwd } }) + followup + whenIdle,用会话日志里 turn/end 的 reason 判定成败。agent 只改代码并自测(prompt 明确禁止 git 操作);插件随后执行 fetch → checkout ghbot/#- → add → commit → push,并回写 GitHub(评论、PR、审查、合并)。