Skip to content

Instantly share code, notes, and snippets.

View jalopez's full-sized avatar

Javier López jalopez

View GitHub Profile
@jalopez
jalopez / jira-prepare-commit-msg
Created January 16, 2023 12:27 — forked from jeremy-w/jira-prepare-commit-msg
A git hook to tag your commits with the JIRA issue ID. Requires a git client that runs the hook like Git Fork, Git Kraken, or anything TUI/CLI.
#!/bin/bash
#
# jira-prepare-commit-msg: Easy commit tagging for Jira
#
# https://gist.github.com/jeremy-w/818b2980f0d9768da83249458aa67678
#
# If you name your branch to include the Jira issue key,
# this hook will automatically add the issue key to your commit messages.
# This makes it easy to trace work back to Jira, and it also means
# your commits show up in the Activity tab for that issue.