https://github.com/tendermint/tendermint
Raw File
Tip revision: 07263298bd76f1ea7ad82f8e06234a450150d76c authored by Ethan Buchman on 18 January 2019, 17:38:48 UTC
Merge pull request #3153 from tendermint/release/v0.28.1
Tip revision: 0726329
authors.sh
#! /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

author=$1

if [[ "$author" == "" ]]; then
	git log master..develop | 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
fi
back to top