Skip to content

Instantly share code, notes, and snippets.

@wingleung
wingleung / prepare-commit-msg.sh
Last active April 19, 2024 02:51
Automatically prepend JIRA issue key to commit message
#!/bin/sh
#
# Automatically adds Jira key to commit message
#
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)