agent: implement issue #1 - Doc: request CN version README

This commit is contained in:
2026-05-06 16:00:44 +08:00
parent c7d972e5cd
commit e3d0e57ae7
2 changed files with 35 additions and 0 deletions

33
README_CN.md Normal file
View File

@@ -0,0 +1,33 @@
# Agentic Gitea Issue-to-PR Manager
[English](README.md)
一个本地运行、可审计的 CLI 服务,用于扫描已配置 Gitea 仓库中的合格 issue在隔离工作区中运行实现 agent创建 pull request运行评审 agent并发布标准化的人工评审摘要。
MVP 版本不会合并 pull request。
## 快速开始
```bash
uv sync
cp config.example.yaml config.yaml
# 在 .env 中写入你的 token例如 GITEA_TOKEN=...
agent-gitea --config config.yaml sync-repos
agent-gitea --config config.yaml scan-issues
agent-gitea --config config.yaml run-once
```
`sync-repos` 会通过 `/user/repos` 发现已认证 Gitea 用户拥有的仓库;仓库不会列在配置文件中。
`worker` 会持续同步仓库、扫描 issue并处理符合条件的任务。
## 命令
- `agent-gitea sync-repos`
- `agent-gitea scan-issues`
- `agent-gitea run-once`
- `agent-gitea worker`
- `agent-gitea show-task <task_id>`
- `agent-gitea retry-task <task_id>`
- `agent-gitea cancel-task <task_id>`
所需的配置结构请参考 `config.example.yaml`