Compare commits

...

3 Commits

Author SHA1 Message Date
William Banfield
42556b7334 fix language 2021-10-04 13:40:10 -04:00
William Banfield
7dbb1fac85 fix language 2021-10-04 13:38:04 -04:00
William Banfield
b701bf84a4 scripts: fix authors script to take a tag 2021-10-04 13:33:58 -04:00

View File

@@ -1,16 +1,14 @@
#! /bin/bash
# Usage:
# `./authors.sh`
# Print a list of all authors who have committed to develop since master.
#
# `./authors.sh <email address>`
# Lookup the email address on Github and print the associated username
ref=$1
author=$1
if [[ "$author" == "" ]]; then
git log master..develop | grep Author | sort | uniq
if [[ ! -z "$ref" ]]; then
git log master..$ref | grep Author | sort | uniq
else
curl -s "https://api.github.com/search/users?q=$author+in%3Aemail&type=Users&utf8=%E2%9C%93" | jq .items[0].login
cat << EOF
Usage:
./authors.sh <ref>
Print a list of all authors who have committed to the codebase since the supplied commit ref.
EOF
fi