Created
July 23, 2018 18:36
-
-
Save danielpza/da230c8b171f34424cc28065b7a3d8de to your computer and use it in GitHub Desktop.
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/bash | |
echo "##" `date -dmonday -I` "-" `date -dfriday -I` | |
echo "### Features" | |
git log --first-parent master --after="`date -dmonday`" --before="`date -dsaturday`" --pretty=format:"- %s" | grep -i "feat" | grep ":" | cut -d' ' -f1,3- | |
git log --first-parent master --after="`date -dmonday`" --before="`date -dsaturday`" --pretty=format:"- %s" | grep -i "feat" | grep -v ":" | |
echo "### Fixes" | |
git log --first-parent master --after="`date -dmonday`" --before="`date -dsaturday`" --pretty=format:"- %s" | grep -i "fix" | grep -iv "feat" | grep ":" | cut -d' ' -f1,3- | |
git log --first-parent master --after="`date -dmonday`" --before="`date -dsaturday`" --pretty=format:"- %s" | grep -i "fix" | grep -iv "feat" | grep -v ":" | |
echo "### Misc" | |
git log --first-parent master --after="`date -dmonday`" --before="`date -dsaturday`" --pretty=format:"- %s" | grep ":" | grep -iv "feat" | grep -iv "fix" | cut -d' ' -f1,3- | |
git log --first-parent master --after="`date -dmonday`" --before="`date -dsaturday`" --pretty=format:"- %s" | grep -v ":" | grep -iv "feat" | grep -iv "fix" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment