🛠️ build(new): update logo

This commit is contained in:
Eshan Roy (Eshanized)
2024-06-18 03:22:52 +05:30
parent a694b6fd8d
commit bd2ffeffc5
2 changed files with 46 additions and 13 deletions

BIN
2024.6/snigdhaos.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

59
push.sh
View File

@@ -1,19 +1,52 @@
#!/bin/bash #!/bin/bash
# Iconized # Author : ESHAN ROY
# Author URI : https://eshanized.github.io
pull_from_github(){ # NOTE : Run at your own Risk!
git pull
}
push_to_github() { # Define the conventional commit types with emojis
ezcommits TYPES=("🎉 feat" "🐞 fix" "📚 docs" "💅 style" "🔨 refactor" "⚡️ perf" "🧪 test" "🛠️ build" "🤖 ci" "🧹 chore" "⏪️ revert")
git push -u origin master
}
main(){ # Prompt the user to select a commit type
pull_from_github echo "Select a commit type:"
push_to_github select type in "${TYPES[@]}"; do
} break
done
main # Extract the commit type and emoji from the selection
type_emoji=${type}
type=${type_emoji#* }
emoji=${type_emoji% *}
# Prompt the user to enter a scope (optional)
read -p "Enter a scope (optional): " scope
# Prompt the user to enter a short description
read -p "Enter a short description: " desc
# Prompt the user to enter a longer description (optional)
read -p "Enter a longer description (optional): " long_desc
# Create the commit message
commit_msg="$emoji $type($scope): $desc"
# If a longer description was provided, add it to the commit message
if [ -n "$long_desc" ]; then
commit_msg+="
$long_desc"
fi
# Print the commit message to the console
echo "Commit message:"
echo "$commit_msg"
# Stage all changes
git add .
# Commit the changes with the conventional commit message
git commit -m "$commit_msg"
# Push the changes to the remote repository
git push origin $(git rev-parse --abbrev-ref HEAD)