Repository navigation
fix: publish validated translations through pull requests - #321
Draft
vincentkoc wants to merge 1 commit into
Draft
vincentkoc wants to merge 1 commit into
vincentkoc wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
What Problem This Solves
Aggregate and recovery translation finalizers currently push directly to main. This routes their validated changes through pull requests so required review and merge rules can apply without reporting an unpublished translation as complete.
User Impact
Translation publication now reports success only after a normal exact-head squash merge and verification of the owned translation tree at the merge commit and current main. Pending or rejected PRs remain available for inspection, and their dependent R2 deployment does not run.
An administrator must activate strict
Publication merge admissionchecks bound to GitHub Actions, with the non-fast-forward rule and empty bypass lists. Missing effective policy holds publication. Merging this source PR can trigger R2 Pages because the internal workflow note matches itsdocs/**push filter; deployment approval remains separate.Why This Change Was Made
Both finalizers share one publication path while retaining their source freshness, canary scope, and build revalidation. A trusted PR-event handler posts only neutral current-PR admission; it never executes candidate code. The publishers retain all payload checks. Caller permission ceilings support the conditional publisher while actual translation jobs keep read-only tokens. The existing OpenClaw-to-docs mirror writer is being migrated separately.
Evidence
At signed head
c00cdb39d3a008fa7c2ac8875508eba8ee480591:This draft does not establish live generated-publication proof or remove the repository exception.