[PR #12734] ci: add issue translation for non-English issues #14348

Open
opened 2026-02-16 18:19:09 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12734

State: open
Merged: No


What does this PR do?

Adds translation support to the issue triage agent by adding tranlsation instruction into the triage agent and tool.

When a non-English issue is opened:

  • The agent detects the language
  • Translates the title and body to English
  • Posts a comment on the issue with the translation

How did you verify your code works?

Tested in a fork - bot correctly comments with agent's translation:

https://github.com/alexyaroshuk/opencode/issues/72
https://github.com/alexyaroshuk/opencode/issues/73
https://github.com/alexyaroshuk/opencode/issues/74

Files changed:

github-triage.ts — Added optional translated_title/translated_body args that post a translation comment via GitHub API
github-triage.txt — Documented the new parameters
triage.md — Instructed the agent to detect and translate non-English issues

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12734 **State:** open **Merged:** No --- ### What does this PR do? Adds translation support to the issue triage agent by adding tranlsation instruction into the triage agent and tool. When a non-English issue is opened: - The agent detects the language - Translates the title and body to English - Posts a comment on the issue with the translation ### How did you verify your code works? Tested in a fork - bot correctly comments with agent's translation: https://github.com/alexyaroshuk/opencode/issues/72 https://github.com/alexyaroshuk/opencode/issues/73 https://github.com/alexyaroshuk/opencode/issues/74 ### Files changed: [github-triage.ts](vscode-webview://1nb1vn7k1g2em4uug0ir1lg0sdfqmfqqi0gvfnaqvdsqibsbg4n1/.opencode/tool/github-triage.ts) — Added optional translated_title/translated_body args that post a translation comment via GitHub API [github-triage.txt](vscode-webview://1nb1vn7k1g2em4uug0ir1lg0sdfqmfqqi0gvfnaqvdsqibsbg4n1/.opencode/tool/github-triage.txt) — Documented the new parameters [triage.md](vscode-webview://1nb1vn7k1g2em4uug0ir1lg0sdfqmfqqi0gvfnaqvdsqibsbg4n1/.opencode/agent/triage.md) — Instructed the agent to detect and translate non-English issues
yindo added the pull-request label 2026-02-16 18:19:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14348