#!/bin/bash

set -o errexit
set -o nounset
set -o pipefail

OS_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${OS_ROOT}/hack/common.sh"

"${OS_ROOT}/hack/build-go.sh" cmd/rebasehelpers/commitchecker

# Find binary
commitchecker="$(os::build::find-binary commitchecker)"
echo "===== Verifying UPSTREAM Commits ====="
$commitchecker
echo "SUCCESS: All commits are valid."
