在本地代码路径下执行
统计merged PR数
gh pr list -A "xxxx" S "base:master merged:2023-01-01..2023-02-01"
统计增删行数
git log --author="xxx" --since=2023-01-01 --until=2023-02-01 --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }'
统计commit数
git log --author="xxx" --since=2023-01-01 --until=2023-02-01 --no-merges | grep -e 'commit [a-zA-Z0-9]*' | wc -l