Skip to content

Add check-en-revision.php, verifying EN-Revision against latest doc-en commit - #343

Open
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:translation/check-en-revision
Open

Add check-en-revision.php, verifying EN-Revision against latest doc-en commit#343
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:translation/check-en-revision

Conversation

@lacatoire

@lacatoire lacatoire commented Sep 10, 2026

Copy link
Copy Markdown
Member

Adds scripts/translation/check-en-revision.php, a shared script that checks the EN-Revision tag of each translated file matches the latest commit hash of the corresponding doc-en file.

Follows the same format and conventions as check-structure.php (#342): reads file paths from stdin or CLI args, uses --lang= and --github, relies on RevtagParser and ArgvParser from the existing libs.

Translation repos (doc-fr, doc-es, doc-ru, doc-pt_br, doc-zh) currently inline the equivalent logic as a bash snippet in their check-en-revision.yml workflow. Once this is merged, those repos can replace the inline script with a call to this shared one, as was done for check-structure.php.

php/doc-fr#3547 uses this script as a first example, pointing at this PR's branch until it is merged.

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