mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[ticket/16675] Check commit messages on pull_request event only
PHPBB3-16675
This commit is contained in:
5
.github/workflows/tests.yml
vendored
5
.github/workflows/tests.yml
vendored
@@ -77,9 +77,10 @@ jobs:
|
||||
.github/check-executable-files.sh ./
|
||||
|
||||
- name: Check commit message
|
||||
env:
|
||||
BRANCH: ${{ github.event.pull_request.base.sha }}
|
||||
if: github.event_name == 'pull_request'
|
||||
run: |
|
||||
# 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
|
||||
|
Reference in New Issue
Block a user