Check the whole range of commits in the topic branch (#10560)

* Check the whole range of commits in the topic branch

* Fix shellcheck

* Debug...

* Ensure to update to the latest of the base branch...
This commit is contained in:
Ryo Onodera 2020-06-14 18:15:46 +09:00 committed by GitHub
parent a0692c9b4c
commit f1131dfbbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 2 deletions

View File

@ -5,8 +5,20 @@ cd "$(dirname "$0")/.."
source ci/_
# Look for failed mergify.io backports
_ git show HEAD --check --oneline
echo --- prepare git show --check
(
set -x
# Look for failed mergify.io backports by searching leftover conflict markers
# Also check for any trailing whitespaces!
if [[ -n $BUILDKITE_PULL_REQUEST_BASE_BRANCH ]]; then
base_branch=$BUILDKITE_PULL_REQUEST_BASE_BRANCH
else
base_branch=$BUILDKITE_BRANCH
fi
_ git fetch origin "$base_branch"
_ git show "$(git merge-base HEAD "origin/$base_branch")..HEAD" --check --oneline
)
_ ci/nits.sh
_ ci/check-ssh-keys.sh