diff --git a/README.md b/README.md index f76c555..7e2df4a 100644 --- a/README.md +++ b/README.md @@ -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` | diff --git a/github-run-opencode/action.yml b/github-run-opencode/action.yml index eebdf23..36432d7 100644 --- a/github-run-opencode/action.yml +++ b/github-run-opencode/action.yml @@ -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