summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/content/docs/zh-cn/github.mdx
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-02-11 18:51:27 -0600
committerAdam <[email protected]>2026-02-11 18:51:50 -0600
commitaea68c386a4f64cf718c3eeee9dffec8409ee6b0 (patch)
treebdf06cb3372c6c48c97c43b41e53e514888a52b3 /packages/web/src/content/docs/zh-cn/github.mdx
parent8eea53a41e92257d1a4ad6653d0d2930465bf34a (diff)
downloadopencode-aea68c386a4f64cf718c3eeee9dffec8409ee6b0.tar.gz
opencode-aea68c386a4f64cf718c3eeee9dffec8409ee6b0.zip
fix(docs): locale translations for nav elements and headings
Diffstat (limited to 'packages/web/src/content/docs/zh-cn/github.mdx')
-rw-r--r--packages/web/src/content/docs/zh-cn/github.mdx18
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/web/src/content/docs/zh-cn/github.mdx b/packages/web/src/content/docs/zh-cn/github.mdx
index 4e63ace80..b9b80d0dd 100644
--- a/packages/web/src/content/docs/zh-cn/github.mdx
+++ b/packages/web/src/content/docs/zh-cn/github.mdx
@@ -7,7 +7,7 @@ opencode 与您的 GitHub 工作流程集成。在评论中提及 `/opencode` �
---
-## Features
+## 功能
- **Triage issues**: 要求 opencode 调查问题并向您解释。
- **Fix and implement**: 要求 opencode 修复问题或实施功能。将在一个新的分支中工作并提交包含所有更改的 PR。
@@ -27,7 +27,7 @@ opencode github install
---
-### Manual Setup
+### 手动设置
或者您可以手动设置。
@@ -79,7 +79,7 @@ opencode github install
---
-## Configuration
+## 配置
- `model`:与 opencode 一起使用的模型。采用 `provider/model` 格式。这是 **必需的**。
- `agent`:要使用的代理。必须是一级代理。如果未找到,则从配置回退到 `default_agent` 或 `"build"`。
@@ -101,11 +101,11 @@ opencode github install
---
-## Supported Events
+## 支持的事件
opencode 可以由以下 GitHub 事件触发:
-| Event Type | Triggered By | Details |
+| 事件类型 | 触发方式 | 详情 |
| ----------------------------- | ---------------------------- | --------------------------------------------------------------------------------------- |
| `issue_comment` | 对问题或 PR 发表评论 | 在评论中提及 `/opencode` 或 `/oc`。 opencode 读取上下文并可以创建分支、打开 PR 或回复。 |
| `pull_request_review_comment` | 对 PR 中的特定代码行进行评论 | 在检查代码时提及 `/opencode` 或 `/oc`。 opencode 接收文件路径、行号和 diff 上下文。 |
@@ -114,7 +114,7 @@ opencode 可以由以下 GitHub 事件触发:
| `schedule` | 基于 Cron 的计划 | 按计划运行 opencode。需要 `prompt` 输入。输出进入日志和 PR(没有可评论的问题)。 |
| `workflow_dispatch` | 从 GitHub UI 手动触发 | 通过“操作”选项卡触发 opencode。需要 `prompt` 输入。输出进入日志和 PR。 |
-### Schedule Example
+### 计划示例
按计划运行 opencode 以执行自动化任务:
@@ -154,7 +154,7 @@ jobs:
---
-### Pull Request Example
+### Pull Request 示例
或更新 PR 时自动审核:
@@ -195,7 +195,7 @@ jobs:
---
-### Issue Triage Example
+### Issue 分类示例
自动分类新问题。此示例过滤超过 30 天的账户以减少垃圾邮件:
@@ -250,7 +250,7 @@ jobs:
---
-## Custom Prompt
+## 自定义提示
覆盖默认提示,为您的工作流程自定义 opencode 的行为。