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:
parent
0171263d8e
commit
f6c6b13fcb
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user