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:
parent
7a3474bf55
commit
7083a7d9bd
|
@ -21,5 +21,5 @@ set -eu -o pipefail
|
||||||
|
|
||||||
# Verify commit messages
|
# Verify commit messages
|
||||||
readarray -t COMMITS <<<$(curl -s ${GITHUB_CONTEXT} | jq -r '.[0,-1].sha')
|
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"
|
bash ./verify-commit-messages.sh "$COMMIT_RANGE"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user