From 0c864627bd2934cf091caad5f47b2320a6f8443b Mon Sep 17 00:00:00 2001 From: GunaTrika <guna.r@trikatechnologies.com> Date: Wed, 6 Oct 2021 11:57:57 +0530 Subject: [PATCH] Adding pre commit hook --- pre-push | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 pre-push diff --git a/pre-push b/pre-push new file mode 100755 index 000000000..da5d8eb4f --- /dev/null +++ b/pre-push @@ -0,0 +1,8 @@ +#!/bin/sh + +yarn build + +if [ "$?" != 0 ]; then + printf "\n\n\033[31mBuild error found. Please resolve this to move forward\033[0m\n\n" + exit 1 +fi \ No newline at end of file