Skip to content

fix: remove hardcoded review prompt from github-run-opencode#21

Merged
Svtter merged 1 commit into
mainfrom
fix/prompt-default
Apr 22, 2026
Merged

fix: remove hardcoded review prompt from github-run-opencode#21
Svtter merged 1 commit into
mainfrom
fix/prompt-default

Conversation

@Svtter
Copy link
Copy Markdown
Collaborator

@Svtter Svtter commented Apr 22, 2026

Summary

  • Remove the hardcoded Chinese review prompt from github-run-opencode/action.yml
  • Set prompt default to empty string ""

Motivation

Closes #20

github-run-opencode should be a general-purpose action. The review prompt belongs in the review action only. When using github-run-opencode for comment-triggered agent tasks (e.g. issue #19), the user's comment instructions were being overridden by the default review prompt.

Changes

github-run-opencode/action.yml: prompt default changed from review prompt → ""

  • review: keeps its own review prompt ✅
  • github-run-opencode: now generic, lets opencode github run read user comment instructions naturally ✅

Closes #20

The review prompt default belongs in the review action only.
github-run-opencode should be a general-purpose action that lets
opencode github run read the user's comment instructions naturally.
@github-actions
Copy link
Copy Markdown

可合并

该 PR 将 github-run-opencode/action.ymlprompt 输入的默认值从硬编码的中文 review 提示词改为空字符串 "",使该 action 成为通用组件。review/action.yml 保留了自己的完整 review 提示词并通过 GITHUB_RUN_OPENCODE_PROMPT 传入,职责分离正确。run-github-opencode.sh:24 使用 [[ -n ... ]] 判断,空字符串时不会设置 PROMPT 环境变量,opencode 将回退到默认行为(如读取用户评论),逻辑正确。

阻塞项:无

建议项:无

New%20session%20-%202026-04-22T15%3A05%3A24.156Z
opencode session  |  github run

@Svtter Svtter merged commit 869bdd4 into main Apr 22, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

github-run-opencode: prompt default overrides user comment instructions

1 participant