From 8dc0bdb007cfcbb9cd731eaea0259445c1fc6d78 Mon Sep 17 00:00:00 2001 From: Abhiraj Roy <157954129+iconized@users.noreply.github.com> Date: Mon, 3 Jun 2024 00:38:14 +0530 Subject: [PATCH 1/2] =?UTF-8?q?=E2=99=BB=EF=B8=8Frefactor(git-config):=20i?= =?UTF-8?q?conized=20git=20credentials?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Abhiraj Roy <157954129+iconized@users.noreply.github.com> --- iconfig.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 iconfig.sh diff --git a/iconfig.sh b/iconfig.sh new file mode 100755 index 0000000..34bf882 --- /dev/null +++ b/iconfig.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Setup Git Credentials + +# Git Credential +username="Abhiraj Roy" +useremail="157954129+iconized@users.noreply.github.com" + +# Git Config +git config --global user.name "$username" +git config --global user.email "$useremail" + +echo -e "\033[0;32mSuccessfully Setup Git Credentials :)" \ No newline at end of file From 599ab93aa0a3d02cfd2b01a8d1609b2377b6962b Mon Sep 17 00:00:00 2001 From: Abhiraj Roy <157954129+iconized@users.noreply.github.com> Date: Mon, 3 Jun 2024 00:41:42 +0530 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=BEci(conventional-commits):=20val?= =?UTF-8?q?idate=20conventional=20commits=20on=20push=20and=20pull?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Abhiraj Roy <157954129+iconized@users.noreply.github.com> --- .github/workflows/commitizen.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/commitizen.yml diff --git a/.github/workflows/commitizen.yml b/.github/workflows/commitizen.yml new file mode 100644 index 0000000..1e14983 --- /dev/null +++ b/.github/workflows/commitizen.yml @@ -0,0 +1,34 @@ +name: EZCommits Check on Push and Pull + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + commitizen_check: + name: Check EZCommits Commit on Push + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: "14" + + - name: Install Commitizen + run: npm install -g commitizen + + - name: Verify Commitizen Commit + run: | + if git log --format='%s' ${{ github.event.before }}..${{ github.sha }} | grep -v '^(feat|fix|docs|style|refactor|perf|test|chore|wip|ci)(\(.+\))?: .+'; then + echo "Invalid commit message found. Please use Commitizen convention." + exit 1 + fi + \ No newline at end of file