Skip to content

CI: check the EN-Revision of the PR head, not of the merge commit - #981

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

CI: check the EN-Revision of the PR head, not of the merge commit#981
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:ci/check-en-revision-pr-head

Conversation

@lacatoire

Copy link
Copy Markdown
Member

On a pull_request event, actions/checkout defaults to refs/pull/N/merge, whose second parent is master. The BASE...HEAD diff therefore also lists every file landed on master since the last push to the pull request, so a translation PR can fail on EN-Revision drift it did not introduce.

Checking out the head sha restores the diff to the commits of the pull request.

Same change as #959, which fixed check-xml.yml.

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