Skip to content

Instantly share code, notes, and snippets.

@danielpza
Created July 23, 2018 18:36
Show Gist options
  • Save danielpza/da230c8b171f34424cc28065b7a3d8de to your computer and use it in GitHub Desktop.
Save danielpza/da230c8b171f34424cc28065b7a3d8de to your computer and use it in GitHub Desktop.
#!/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