mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(CI): Fix commit message check on single commit PRs
The range of COMMIT..COMMIT does not count the starting commit, so single commit PRs are completely unchecked, and multi commit PRs don't have their first commit checked.
This commit is contained in:
parent
a3517d4291
commit
e48c557387
|
@ -21,5 +21,5 @@ set -eu -o pipefail
|
|||
|
||||
# Verify commit messages
|
||||
readarray -t COMMITS <<<$(curl -s ${GITHUB_CONTEXT} | jq -r '.[0,-1].sha')
|
||||
COMMIT_RANGE="${COMMITS[1]}..${COMMITS[0]}"
|
||||
COMMIT_RANGE="${COMMITS[1]}~1..${COMMITS[0]}"
|
||||
bash ./verify-commit-messages.sh "$COMMIT_RANGE"
|
||||
|
|
Loading…
Reference in New Issue
Block a user