Skip to content

Commit

Permalink
use do_ci.sh in the pre-push git hook
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmad Karimi <[email protected]>
  • Loading branch information
therealak12 committed Dec 22, 2024
1 parent 9e9a9da commit 69898bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion support/hooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ do
# directory, independent of whether we're in a submodule, so no need to use
# our `relpath` helper.
SCRIPT_DIR="$(dirname "$(realpath "$0")")/../../tools"
CI_DIR="$(dirname "$(realpath "$0")")/../../ci"

_CHANGES=$(git diff --name-only "$RANGE" --diff-filter=ACMR --ignore-submodules=all 2>&1 | tr '\n' ' ')
IFS=' ' read -ra CHANGES <<< "$_CHANGES"
Expand All @@ -77,7 +78,7 @@ do
# "$SCRIPT_DIR"/spelling/check_spelling_pedantic.py check "${CHANGES[@]}" || exit 1

# TODO(mattklein123): Optimally we would be able to do this on a per-file basis.
"$SCRIPT_DIR"/proto_format/proto_format.sh check || exit 1
"$CI_DIR"/do_ci.sh check_proto_format || exit 1

bazel run //tools/code:check -- \
-s main \
Expand Down

0 comments on commit 69898bd

Please sign in to comment.