Skip to content

Commit

Permalink
Merge pull request #104 from SzymCode/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
SzymCode authored Jul 23, 2024
2 parents fc2c3d1 + ff8b158 commit 165302b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

COMMIT_MSG_FILE="$1"
ORIGINAL_MSG=$(cat "$COMMIT_MSG_FILE")

CURRENT_BRANCH=$(git symbolic-ref --short HEAD)


case "$CURRENT_BRANCH" in
atomic-design)
FINAL_MSG="Atomic Design: $ORIGINAL_MSG"
;;
docker)
FINAL_MSG="Docker: $ORIGINAL_MSG"
;;
packages)
FINAL_MSG="Packages: $ORIGINAL_MSG"
;;
storybook)
FINAL_MSG="Storybook: $ORIGINAL_MSG"
;;
workflow)
FINAL_MSG="Workflow: $ORIGINAL_MSG"
;;
esac

echo "$FINAL_MSG" > "$COMMIT_MSG_FILE"

0 comments on commit 165302b

Please sign in to comment.