diff --git a/tools/api/check-api.sh b/tools/api/check-api.sh new file mode 100755 index 00000000000..edda70a51cf --- /dev/null +++ b/tools/api/check-api.sh @@ -0,0 +1,92 @@ +#!/bin/bash +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + +set -e + +ERR_CODE_UNCOMMITTED_API_CHANGE=1 +ERR_CODE_CANT_FIND_PROJECT=2 +ERR_CODE_BAD_COMMIT=3 + +WARNING_MESSAGE_HEADER=$(cat <