1
0
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:
Anthony Bilinski 2022-04-02 19:37:00 -07:00
parent a3517d4291
commit e48c557387
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -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"