Skip to content

Commit

Permalink
🧹 chore: removed scope from the script
Browse files Browse the repository at this point in the history
  • Loading branch information
eshanized committed Dec 30, 2024
1 parent 9e16b41 commit 9345742
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9345742

Please sign in to comment.