This file contains 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
git log <tag> --pretty=oneline | perl -ne '{ /feature\/(\w+)-(\d+)/ && print "$1-$2\n" }' | sort | uniq |
This file contains 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/sh | |
# Get the story ID from the branch name | |
story_id=`git symbolic-ref --short -q HEAD | grep -o "^[[:digit:]]*"` | |
if [ ! -z "$story_id" -a "$story_id" != " " ] | |
then | |
# If a story ID is found, prepend the commit message with a reference | |
echo "[#$story_id] $(cat $1)" > "$1" | |
fi |