From fd189d619302114ec12f6dbb4c3fadfcc83175a1 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 04:49:58 +0000 Subject: [PATCH 1/4] feat: Updated scripts/githooks/pre-commit.sh --- scripts/githooks/pre-commit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/githooks/pre-commit.sh b/scripts/githooks/pre-commit.sh index 76e07f97..f895e8c1 100644 --- a/scripts/githooks/pre-commit.sh +++ b/scripts/githooks/pre-commit.sh @@ -1,6 +1,6 @@ chmod +x scripts/githooks/pre-commit.sh -#!/usr/bin/env bash -#!/usr/bin/env bash +#!/bin/bash +#!/bin/bash #!/usr/bin/env bash #!/usr/bin/env bash From 2086305b69846bc87aafeaa202fc69f921e87d24 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 04:50:15 +0000 Subject: [PATCH 2/4] feat: Updated scripts/githooks/pre-commit.sh --- scripts/githooks/pre-commit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/githooks/pre-commit.sh b/scripts/githooks/pre-commit.sh index f895e8c1..f28a16c3 100644 --- a/scripts/githooks/pre-commit.sh +++ b/scripts/githooks/pre-commit.sh @@ -35,7 +35,7 @@ Unless required by applicable law or agreed to in writing, software # ============================================================================== # -export LC_ALL=C + local_branch="$(git rev-parse --abbrev-ref HEAD)" valid_branch_regex="^(main|master|develop|release(-[a-zA-Z0-9._-]+)?)$|(feature|feat|openim|hotfix|test|bug|bot|refactor|revert|ci|cicd|style|)\/[a-z0-9._-]+$|^HEAD$" From 4cc89dd3c78fa171028db051012e6e83219a1b34 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 04:50:33 +0000 Subject: [PATCH 3/4] feat: Updated scripts/githooks/pre-commit.sh --- scripts/githooks/pre-commit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/githooks/pre-commit.sh b/scripts/githooks/pre-commit.sh index f28a16c3..13271ef2 100644 --- a/scripts/githooks/pre-commit.sh +++ b/scripts/githooks/pre-commit.sh @@ -1,4 +1,4 @@ -chmod +x scripts/githooks/pre-commit.sh + #!/bin/bash #!/bin/bash #!/usr/bin/env bash @@ -85,7 +85,7 @@ HEREDOC # Move to the repo root so git files paths make sense repo_root=$(git rev-parse --show-toplevel 2>/dev/null) cd $repo_root -chmod +x scripts/githooks/pre-commit.sh + against=HEAD From c7ce5c14e2de271b37dd04c0d1567c5e60939f31 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 04:50:51 +0000 Subject: [PATCH 4/4] feat: Updated scripts/githooks/pre-commit.sh --- scripts/githooks/pre-commit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/githooks/pre-commit.sh b/scripts/githooks/pre-commit.sh index 13271ef2..56b2890f 100644 --- a/scripts/githooks/pre-commit.sh +++ b/scripts/githooks/pre-commit.sh @@ -4,7 +4,7 @@ #!/usr/bin/env bash #!/usr/bin/env bash -chmod +x scripts/githooks/pre-commit.sh + #!/usr/bin/env bash chmod +x scripts/githooks/pre-commit.sh # Copyright © 2023 OpenIMSDK.