Skip to content

Instantly share code, notes, and snippets.

@lawrencejones
Created April 10, 2015 16:09
Show Gist options
  • Save lawrencejones/0f2fb244df921e55c4cf to your computer and use it in GitHub Desktop.
Save lawrencejones/0f2fb244df921e55c4cf to your computer and use it in GitHub Desktop.
Hook to append ghi output to commit message
#!/bin/bash
# Append ghi output to the commit message
if hash ghi 2>/dev/null;
then
ghi | sed 's/^ \+\([0-9]\+\)/#\tissue: #\1:\t/' >> $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment