From ed89eb10cfdc94f3010b436f2d967b992f4f8b14 Mon Sep 17 00:00:00 2001 From: mn185177 <103932056+mn185177@users.noreply.github.com> Date: Thu, 22 Sep 2022 23:38:23 +0530 Subject: [PATCH 1/5] create hooks --- hooks | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hooks diff --git a/hooks b/hooks new file mode 100644 index 0000000..dc4c75c --- /dev/null +++ b/hooks @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +LC_ALL=C + +local_branch="$(git rev-parse --abbrev-ref HEAD)" + +valid_branch_regex="([a-z]{2}\d{1,6}-[a-z]{5}-\d{4})+$" + +message="There is something wrong with your branch name. Branch names in this project must adhere to this contract: $valid_branch_regex. Your commit will be rejected. You should rename your branch to a valid name and try again." + +if [[ ! $local_branch =~ $valid_branch_regex ]] +then + echo "$message" + exit 1 +fi + +exit 0 From 2a14544f4daec9adb9a2641bfbe30439e20c8355 Mon Sep 17 00:00:00 2001 From: mn185177 <103932056+mn185177@users.noreply.github.com> Date: Thu, 22 Sep 2022 23:39:27 +0530 Subject: [PATCH 2/5] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3a24dce..7d68d01 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,4 @@ Course repo for Implementing Terraform with Google Cloud Platform course at Plur 1. Google Cloud Provider: 4.0.0 1. Google Cloud Beta Provider: 4.0.0 1. Google Cloud SDK: 363.0.0 +2. recommit From 24e6bf20d26d925030300ef09d233e39e8cfa457 Mon Sep 17 00:00:00 2001 From: mn185177 <103932056+mn185177@users.noreply.github.com> Date: Thu, 22 Sep 2022 23:42:56 +0530 Subject: [PATCH 3/5] creating hook --- .github/workflows/manual.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/manual.yml diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 0000000..f40b3f8 --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,15 @@ +LC_ALL=C + +local_branch="$(git rev-parse --abbrev-ref HEAD)" + +valid_branch_regex="([a-z]{2}\d{1,6}-[a-z]{5}-\d{4})+$" + +message="There is something wrong with your branch name. Branch names in this project must adhere to this contract: $valid_branch_regex. Your commit will be rejected. You should rename your branch to a valid name and try again." + +if [[ ! $local_branch =~ $valid_branch_regex ]] +then + echo "$message" + exit 1 +fi + +exit 0 From e97c3e1dd699b4b9aab0ec9e04f68f7b43ff76b3 Mon Sep 17 00:00:00 2001 From: mn185177 <103932056+mn185177@users.noreply.github.com> Date: Thu, 22 Sep 2022 23:43:44 +0530 Subject: [PATCH 4/5] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 7d68d01..3a24dce 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,3 @@ Course repo for Implementing Terraform with Google Cloud Platform course at Plur 1. Google Cloud Provider: 4.0.0 1. Google Cloud Beta Provider: 4.0.0 1. Google Cloud SDK: 363.0.0 -2. recommit From 934896956ae49c7c9184d4950bb4b572fb7e2240 Mon Sep 17 00:00:00 2001 From: Sathish Goud <103415519+sg185466@users.noreply.github.com> Date: Wed, 28 Sep 2022 13:47:28 +0530 Subject: [PATCH 5/5] Update backend.tf --- m3/backend.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m3/backend.tf b/m3/backend.tf index 43255d8..e8c0240 100644 --- a/m3/backend.tf +++ b/m3/backend.tf @@ -5,3 +5,5 @@ terraform { prefix = "m3/gcs_state" } } + +