Skip to content

Instantly share code, notes, and snippets.


Ruskin jonnyparris

View GitHub Profile
jonnyparris /
Last active May 6, 2020 — forked from bartoszmajsak/
How to automatically prepend git commit with the Jira ticket reference from a branch name
# For instance with feature/add_new_feature_HEYT-653
# $ git commit -m"Fixed bug"
# will result with commit "[HEYT-653] Fixed bug"
# Customize which branches should be skipped when prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
You can’t perform that action at this time.