You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
445 B

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