Skip to content

CI: check the EN-Revision hash of changed files#151

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

CI: check the EN-Revision hash of changed files#151
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:ci/check-en-revision

Conversation

@lacatoire

@lacatoire lacatoire commented Jul 7, 2026

Copy link
Copy Markdown
Member

Adds a workflow that, on every PR, checks that the EN-Revision: comment of the changed .xml files points to the latest doc-en commit for that file. A missing, wrong, mismatched or outdated hash produces a ::error annotation.

The same check already runs on php/doc-fr (on every PR), php/doc-es and php/doc-ru:
https://github.com/php/doc-fr/blob/master/.github/workflows/check-en-revision.yml

It only needs a checkout of doc-en, no doc-base. To make it warn without blocking the PR, change the final exit $fail to exit 0.

A shared translation toolchain is being built in php/doc-base so every language can get these checks from a single place. Until that lands, this workflow is a useful stopgap: it is fully self-contained (doc-en checkout only) and provides the check today.

@lacatoire lacatoire force-pushed the ci/check-en-revision branch from bf33d6c to 9e69863 Compare July 7, 2026 13:26
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