Browse Source

chore: add user commits to count commit script

main
fdai7451 2 years ago
parent
commit
1e3ce85d04
  1. 3
      count-commits.sh

3
count-commits.sh

@ -7,3 +7,6 @@ if [[ $total_commits -gt 200 ]]; then
else else
echo "Total commits: $total_commits. $(expr 200 - $total_commits) commits left to reach minimum required commits" echo "Total commits: $total_commits. $(expr 200 - $total_commits) commits left to reach minimum required commits"
fi fi
echo "Commits per user:"
git shortlog -s -e | sed 's/<//;s/>//' | awk '{ printf "\t%s (%s): %s\n", $2, $3, $1 }'
Loading…
Cancel
Save