Skip to content

Commit 130c6f6

Browse files
committed
CRS-12345 - Added base branch
1 parent 40c4752 commit 130c6f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git-commit-push-script.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ source ~/.bash_profile
44
# Add all changes
55
git add -A
66

7+
# Get branch name
8+
base_branch=$(git rev-parse --abbrev-ref HEAD)
9+
710
# Extract ticket number from current directory
811
ticket=$(echo $base_branch | grep -o -E '([A-Za-z]+-[0-9]{3,}|[A-Za-z]+-[0-9]{3,})')
912

0 commit comments

Comments
 (0)