mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 07:18:08 +02:00
[ticket/16675] Adjust checking commit messages
Check commit messages on both 'push' and 'pull_request' events. PHPBB3-16675
This commit is contained in:
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
@@ -77,12 +77,10 @@ jobs:
|
|||||||
.github/check-executable-files.sh ./
|
.github/check-executable-files.sh ./
|
||||||
|
|
||||||
- name: Check commit message
|
- 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: |
|
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
|
# Tests for MySQL and MariaDB
|
||||||
mysql-tests:
|
mysql-tests:
|
||||||
|
Reference in New Issue
Block a user