Add inline issue translation to enforce-issue-quality workflow - #2
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan