github.com/vipernet-xyz/tm@v0.34.24/scripts/authors.sh (about)

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