1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-14 04:30:29 +01:00

[ticket/16659] Add commit message check

PHPBB3-16659
This commit is contained in:
Marc Alexander 2020-12-15 22:33:18 +01:00
parent bff3c7c7af
commit c2c2c3f62b
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -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"