Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Use this when you want the shortest consumer workflow for `opencode github run`.
| Input | Default | Description |
| --- | --- | --- |
| `model` | empty | Exported as `MODEL` before `opencode github run` |
| `prompt` | empty | Exported as `PROMPT` before `opencode github run` |
| `prompt` | built-in PR review template | Exported as `PROMPT` before `opencode github run` |
| `github-token` | empty | Exported as `GITHUB_TOKEN` before `opencode github run` |
| `zhipu-api-key` | empty | Exported as `ZHIPU_API_KEY` before `opencode github run` |
| `opencode-go-api-key` | empty | Exported as `OPENCODE_GO_API_KEY` before `opencode github run` |
Expand Down
28 changes: 27 additions & 1 deletion github-run-opencode/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,33 @@ inputs:
prompt:
description: Value exported as PROMPT before running `opencode github run`.
required: false
default: ""
default: |
Review this pull request (read-only mode, DO NOT modify any code):

Please check:
- Code quality issues
- Potential bugs or logic errors
- Code style consistency
- Security concerns
- Performance issues
- Suggest improvements

Please respond in Chinese. DO NOT modify any code, only provide review comments.
The first line of your response must be exactly one of:
- 可合并
- 有条件合并
- 不可合并

Decision rules:
- Use "可合并" only when there are no blocking issues.
- Use "有条件合并" when merge is acceptable only after specific issues are fixed.
- Use "不可合并" when there are blocking risks, correctness issues, or major concerns that should stop the merge.

Output format:
- First line: the decision only
- Then a short summary
- Then "阻塞项" listing required fixes for merge; if none, write "阻塞项:无"
- Then "建议项" listing non-blocking improvements; if none, write "建议项:无"
use-github-token:
description: Value exported as USE_GITHUB_TOKEN before running `opencode github run`.
required: false
Expand Down