From 718d2dc77e972ce1f1b3b4bda5c7889e58aa9d0c Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 26 Mar 2021 21:08:31 +0100 Subject: [PATCH] [ticket/16675] Use github base branch head rev for commit message check PHPBB3-16675 --- .github/workflows/tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c72abf2f36..d9018e5261 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -83,7 +83,8 @@ jobs: - name: Check commit message if: github.event_name == 'pull_request' run: | - git-tools/commit-msg-hook-range.sh $(git rev-list --merges -n 1 HEAD^1)..$GITHUB_SHA + git fetch origin $GITHUB_BASE_REF &> /dev/null + git-tools/commit-msg-hook-range.sh $(git rev-parse origin/$GITHUB_BASE_REF)..$GITHUB_SHA # Tests for MySQL and MariaDB mysql-tests: