1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

[ticket/16675] Adjust checking commit messages

Check commit messages on both 'push' and 'pull_request' events.

PHPBB3-16675
This commit is contained in:
rxu 2021-01-08 22:03:39 +07:00
parent 0171263d8e
commit f6c6b13fcb
No known key found for this signature in database
GPG Key ID: 955F0567380E586A

View File

@ -77,12 +77,10 @@ jobs:
.github/check-executable-files.sh ./
- name: Check commit message
env:
BRANCH: ${{ github.event.pull_request.base.sha }}
PR_SHA: ${{ github.event.pull_request.head.sha }}
if: github.event.pull_request.head.sha != '' && github.event.pull_request.base.sha != ''
run: |
git-tools/commit-msg-hook-range.sh $BRANCH..$PR_SHA
# Get previous merge commit to get commit range from
export BRANCH=$(git rev-list --merges -n 1 HEAD^1)
git-tools/commit-msg-hook-range.sh $BRANCH..$GITHUB_SHA
# Tests for MySQL and MariaDB
mysql-tests: