From a1c8329231733ae44551f570d72cd23a6a7a5c12 Mon Sep 17 00:00:00 2001 From: eshanized Date: Tue, 14 Jan 2025 03:48:13 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20remove=20scope?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- push.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/push.sh b/push.sh index 09746d7..cf80693 100755 --- a/push.sh +++ b/push.sh @@ -37,13 +37,6 @@ type_emoji=${type} type=${type_emoji#* } emoji=${type_emoji% *} -# Prompt the user to enter a scope (optional) -read -p "Enter a scope (optional): " scope -scope_part="" -if [ -n "$scope" ]; then - scope_part="($scope)" -fi - # Prompt the user to enter a short description read -p "Enter a short description: " desc if [ -z "$desc" ]; then @@ -54,13 +47,11 @@ fi read -p "Enter a longer description (optional): " long_desc # Create the commit message -commit_msg="$emoji $type$scope_part: $desc" +commit_msg="$emoji $type: $desc" # If a longer description was provided, add it to the commit message if [ -n "$long_desc" ]; then - commit_msg+=" - -$long_desc" + commit_msg+="\n\n$long_desc" fi # Print the commit message to the console