diff --git a/.github/workflows/commitizen.yml b/.github/workflows/commitizen.yml new file mode 100644 index 0000000..8286582 --- /dev/null +++ b/.github/workflows/commitizen.yml @@ -0,0 +1,33 @@ +name: Commitizen Check + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + commitizen_check: + name: Check Commitizen 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)(\(.+\))?: .+'; then + echo "Invalid commit message found. Please use Commitizen convention." + exit 1 + fi \ No newline at end of file diff --git a/commits.sh b/commits.sh new file mode 100755 index 0000000..d4cc733 --- /dev/null +++ b/commits.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Author : Eshan Roy +# URI : https://eshanized.github.io + +# NOTE: If you are on Snigdha OS, +# you can install commitizen-go with `sudo pacman -S commitizen-go` +# or `s commitizen-go`. Else you need to install `yay` or `yay-bin` +# to install commitizen. I have written this script only for *Arch Linux. + +# Function to check if Commitizen is installed +check_commitizen() { + if ! pacman -Qq better-commits &> /dev/null; then + echo "Better Commits is not installed. Please install it using 'yay -S commitizen-go'." >&2 + exit 1 + fi +} + +# Function to stage, commit, and push changes +push_to_github() { + git add . + better-commits + git push origin master +} + +# Main Function +main() { + check_commitizen + push_to_github +} + +main \ No newline at end of file diff --git a/push.sh b/push.sh new file mode 100644 index 0000000..60508a5 --- /dev/null +++ b/push.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Author : Eshan Roy +# URI : https://eshanized.github.io + +# NOTE: If you are on Snigdha OS, +# you can install commitizen-go with `sudo pacman -S commitizen-go` +# or `s commitizen-go`. Else you need to install `yay` or `yay-bin` +# to install commitizen. I have written this script only for *Arch Linux. + +# Function to check if Commitizen is installed +check_commitizen() { + if ! pacman -Qq commitizen-go &> /dev/null; then + echo "Commitizen is not installed. Please install it using 'yay -S commitizen-go'." >&2 + exit 1 + fi +} + +# Function to stage, commit, and push changes +push_to_github() { + git add . + git cz + git push origin master +} + +# Main Function +main() { + check_commitizen + push_to_github +} + +main \ No newline at end of file diff --git a/snigdhaos-kernel-manager.py b/snigdhaos-kernel-manager.py new file mode 100644 index 0000000..84c350e --- /dev/null +++ b/snigdhaos-kernel-manager.py @@ -0,0 +1,3 @@ +#!/usr/bin/python + +