Fix the contributors script to show only contributors on the current branch

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2016-09-22 12:34:59 -07:00
parent f65f89ad8c
commit 5667de87e8
1 changed files with 2 additions and 2 deletions

View File

@ -15,10 +15,10 @@ EOM
[[ -n "$1" ]] || usage
PREV_RELEASE=$1
VERSION=HEAD
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
URL="https://api.github.com/repos/docker/compose/compare"
contribs=$(curl -sf "$URL/$PREV_RELEASE...$VERSION" | \
contribs=$(curl -sf "$URL/$PREV_RELEASE...$BRANCH" | \
jq -r '.commits[].author.login' | \
sort | \
uniq -c | \