1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(CI): Fix commit message check range

It was reversed before which works on normal PRs, but checks commits on
the destination branch when merging two upstream branches.
This commit is contained in:
Anthony Bilinski 2022-03-05 17:46:59 -08:00
parent 7a3474bf55
commit 7083a7d9bd
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[0]}..${COMMITS[1]}"
COMMIT_RANGE="${COMMITS[1]}..${COMMITS[0]}"
bash ./verify-commit-messages.sh "$COMMIT_RANGE"