Skip to content

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

Merged
Wibias merged 10 commits into
devfrom
codex/issue-inline-translation
Jul 26, 2026
Merged

Add inline issue translation to enforce-issue-quality workflow#2
Wibias merged 10 commits into
devfrom
codex/issue-inline-translation

Conversation

@Wibias

@Wibias Wibias commented Jul 25, 2026

Copy link
Copy Markdown
Owner

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

Wibias added 10 commits July 25, 2026 07:13
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.
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.
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.
…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.
Emit parse-failure outputs, persist control state on non-true translation paths, record apply attempts in finally, and tighten workflow/parser regressions.
Prevent a newer issue event from aborting a run after the issue was mutated but before translation control state was persisted.
@Wibias
Wibias merged commit 3f2098d into dev Jul 26, 2026
13 checks passed
@Wibias
Wibias deleted the codex/issue-inline-translation branch July 27, 2026 03:53
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