mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/16675] Check commit messages on pull_request event only
PHPBB3-16675
This commit is contained in:
parent
f6c6b13fcb
commit
0d45825016
1 changed files with 3 additions and 2 deletions
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
|
||||
|
|
Loading…
Add table
Reference in a new issue