From 5bbe99f8f550ae665ee3e1115a696d94f941ade3 Mon Sep 17 00:00:00 2001 From: Million-mo <15158090088@163.com> Date: Thu, 23 Jul 2026 11:49:22 +0800 Subject: [PATCH] docs: add OpenCode bot test guide Test PR to trigger the opencode.yml workflow and verify Kimi Code Plan integration works end-to-end. --- OPENCODE_BOT_TEST.md | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 OPENCODE_BOT_TEST.md diff --git a/OPENCODE_BOT_TEST.md b/OPENCODE_BOT_TEST.md new file mode 100644 index 000000000..1250deae0 --- /dev/null +++ b/OPENCODE_BOT_TEST.md @@ -0,0 +1,49 @@ +# OpenCode Bot Testing Guide + +This file is for testing the OpenCode GitHub bot integration. + +## Overview + +The `opencode.yml` workflow integrates [OpenCode](https://opencode.ai) with our +GitHub workflow. It uses the Kimi Code Plan (`kimi-for-coding` provider) as the +LLM backend. + +## Triggers + +| Event | Trigger | Use Case | +|-------|---------|----------| +| `pull_request` | Auto on PR open/sync/reopen | Automated code review | +| `issue_comment` | `/oc` or `/opencode` in comment | Manual task on issue/PR | +| `pull_request_review_comment` | `/oc` on PR diff line | Targeted code feedback | + +## Model + +- **Provider**: `kimi-for-coding` +- **Model**: `kimi-for-coding` (maps to Kimi K2.7 Code) +- **Context**: 256K (Andante tier) + +## Usage Examples + +### Auto Review + +Open a PR targeting `develop/agentic`. The bot reviews automatically. + +### Manual Fix + +Comment on any issue or PR: + +``` +/oc fix the typo in the README +``` + +### Inline Code Review + +In the PR "Files changed" tab, comment on a specific line: + +``` +/oc add error handling here +``` + +## Notes + +This file is a test artifact. Remove or keep as documentation.