Skip to content

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

Merged
lacatoire merged 1 commit into
php:masterfrom
lacatoire:translation/check-en-revision
Sep 10, 2026
Merged

Add check-en-revision.php, verifying EN-Revision against latest doc-en commit#343
lacatoire merged 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.

@lacatoire
lacatoire merged commit f7de100 into php:master Sep 10, 2026
11 of 12 checks passed
@lacatoire
lacatoire deleted the translation/check-en-revision branch September 10, 2026 14:16
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.

2 participants