Skip to content

Instantly share code, notes, and snippets.

View joeyciechanowicz's full-sized avatar

Joey Ciechanowicz joeyciechanowicz

View GitHub Profile
@joeyciechanowicz
joeyciechanowicz / prepare-commit-msg.rb
Last active October 31, 2017 15:26 — forked from ArturT/prepare-commit-msg.rb
git hook prepare commit message for JIRA. It adds story id to any commit message that has (): in it
#!/usr/bin/env ruby
#
# Git prepare-commit-msg hook for JIRA project.
#
# Name your feature brach like: STORY_ID/branch-name
#
# Install:
# Put this file in `~/.githooks/prepare-commit-msg`
#
# $ cd yourproject