From c2c2c3f62bad1aef406d037dbfe59f1cc90b225f Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Tue, 15 Dec 2020 22:33:18 +0100 Subject: [PATCH] [ticket/16659] Add commit message check PHPBB3-16659 --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6a7a470f65..574724383d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -217,6 +217,13 @@ jobs: run: | phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml --group slow + - name: Check commit message + env: + BRANCH: ${{ github.event.pull_request.base.ref }} + PR_SHA: ${{ github.event.pull_request.head.sha }} + if: ${{ matrix.NOTESTS == 1 && github.event.pull_request.head.sha != '' && github.event.pull_request.base.ref != '' }} + run: | + git remote set-branches --add origin $BRANCH && git fetch && git-tools/commit-msg-hook-range.sh origin/$BRANCH..$PR_SHA # @todo: Add commit message check # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"