Last active
December 21, 2023 15:31
-
-
Save Likeyn/4540531 to your computer and use it in GitHub Desktop.
Shows small fun statistics from a git repository
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 | |
# Shows small fun statistics from a git repository | |
# Init | |
WEB='web/'; | |
DB='config/doctrine/schema.yml data/sql/dbdeploy/'; | |
COMMITS=$(git --no-pager shortlog -ns | head -3); | |
FIXS=$(git --no-pager shortlog -nsi --grep=fix | head -3); | |
DATABASE=$(git --no-pager shortlog -ns -- $DB | head -1 | cut -f 2); | |
FRONTEND=$(git --no-pager shortlog -ns -- $WEB | head -1 | cut -f 2); | |
MERGE=$(git --no-pager shortlog -nsi --grep=merge | head -1 | cut -f 2); | |
SHIZZLE=$(git --no-pager shortlog -nsi --grep=shizzle | head -1 | cut -f 2); | |
echo -e "Frenetic committers podium"; | |
echo -e "$COMMITS\n"; | |
echo -e "Jim'll fix it podium"; | |
echo -e "$FIXS\n"; | |
echo -e "Special awards"; | |
echo -e " Fuusion! award $MERGE"; | |
echo -e " ALTER-DB award $DATABASE"; | |
echo -e " Frontend-guy $FRONTEND"; | |
echo -e " Shizzle award $SHIZZLE"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment