Created
April 10, 2015 16:09
-
-
Save lawrencejones/0f2fb244df921e55c4cf to your computer and use it in GitHub Desktop.
Hook to append ghi output to commit message
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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