Skip to content

Commit a1c8329

Browse files
committed
🐛 fix: remove scope
1 parent 6f915b0 commit a1c8329

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

push.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ type_emoji=${type}
3737
type=${type_emoji#* }
3838
emoji=${type_emoji% *}
3939

40-
# Prompt the user to enter a scope (optional)
41-
read -p "Enter a scope (optional): " scope
42-
scope_part=""
43-
if [ -n "$scope" ]; then
44-
scope_part="($scope)"
45-
fi
46-
4740
# Prompt the user to enter a short description
4841
read -p "Enter a short description: " desc
4942
if [ -z "$desc" ]; then
@@ -54,13 +47,11 @@ fi
5447
read -p "Enter a longer description (optional): " long_desc
5548

5649
# Create the commit message
57-
commit_msg="$emoji $type$scope_part: $desc"
50+
commit_msg="$emoji $type: $desc"
5851

5952
# If a longer description was provided, add it to the commit message
6053
if [ -n "$long_desc" ]; then
61-
commit_msg+="
62-
63-
$long_desc"
54+
commit_msg+="\n\n$long_desc"
6455
fi
6556

6657
# Print the commit message to the console

0 commit comments

Comments
 (0)