Skip to content

Commit 40c4752

Browse files
committed
- Added new ticket regex
1 parent 349e4e8 commit 40c4752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-commit-push-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source ~/.bash_profile
55
git add -A
66

77
# Extract ticket number from current directory
8-
ticket=$(pwd | grep -oE "CRS-[0-9]+" | head -n 1)
8+
ticket=$(echo $base_branch | grep -o -E '([A-Za-z]+-[0-9]{3,}|[A-Za-z]+-[0-9]{3,})')
99

1010
# Prompt for commit message
1111
read -p "Enter commit message: " message

0 commit comments

Comments
 (0)