Skip to content

Add inline issue translation to enforce-issue-quality workflow - #440

Merged
Wibias merged 10 commits into
lidge-jun:devfrom
Wibias:codex/issue-inline-translation
Jul 25, 2026
Merged

Add inline issue translation to enforce-issue-quality workflow#440
Wibias merged 10 commits into
lidge-jun:devfrom
Wibias:codex/issue-inline-translation

Conversation

@Wibias

@Wibias Wibias commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a translate job to enforce-issue-quality.yml for non-English issues: English title rewrite + collapsible inline translation block in the issue body.
  • Adds issue-translation.cjs with rate limits (60s cooldown, 10/hour, unchanged-source skip).
  • Removes duplicate translation from issue-triage.yml; validation ignores translation blocks.

Test plan

  • node --test .github/scripts/issue-translation.test.cjs
  • bun test tests/ci-workflows.test.ts

Summary by CodeRabbit

  • New Features
    • Added an issue “translate” pipeline that generates inline translated title/body and persists translation control state via a shared bot comment.
    • Added an updated deduplication flow that reports potential duplicates and possibly related issues with structured bot comments.
  • Bug Fixes
    • Issue quality validation now runs on a translation-stripped issue body.
    • Improved AI translation response parsing and hardened truncation/stale-source protection and rate limiting.
  • Tests
    • Added and expanded Node-based translation/response parsing tests, and strengthened CI workflow safeguards and permission checks.

Move translation from issue-triage into enforce-issue-quality so non-English issue bodies get an English collapsible appendix and title rewrite on open/edit, with spam protection and validation-safe body stripping.
@coderabbitai

This comment was marked as outdated.

@chatgpt-codex-connector

This comment was marked as resolved.

Wibias added 2 commits July 25, 2026 07:28
Guard stale applies and workflow_dispatch refs, fingerprint titles, preserve suffixes after translation blocks, budget body size, record throttle state for English detections, remove legacy bot comments, and run translation tests in issue-quality CI.
…x, control state).

Move rate-limit state to bot-owned control comments, hash title+body for source identity, abort stale applies before mutation, and preserve user suffixes when replacing generated translation blocks.
coderabbitai[bot]

This comment was marked as resolved.

Wibias added 2 commits July 25, 2026 07:53
Fix broken node parse quoting, bound translation blocks with an end marker, share control-comment upsert/selection, narrow mention sanitization, document translate permissions, and restore issue-triage read scopes.
coderabbitai[bot]

This comment was marked as resolved.

…ate encoding.

Move AI response parsing into a tested CommonJS script, keep translation blocks bounded by end markers, and store bot control state as validated base64url so untrusted language values cannot break HTML comments.
coderabbitai[bot]

This comment was marked as resolved.

Emit parse-failure outputs, persist control state on non-true translation paths, record apply attempts in finally, and tighten workflow/parser regressions.
coderabbitai[bot]

This comment was marked as resolved.

@coderabbitai

This comment was marked as outdated.

Wibias added 2 commits July 25, 2026 08:54
Prevent a newer issue event from aborting a run after the issue was mutated but before translation control state was persisted.
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.

1 participant