Add a script to generate contributor list.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
0409b287ad
commit
338f2f4507
2 changed files with 34 additions and 4 deletions
27
script/release/contributors
Executable file
27
script/release/contributors
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
|
||||
function usage() {
|
||||
>&2 cat << EOM
|
||||
Print the list of github contributors for the release
|
||||
|
||||
Usage:
|
||||
|
||||
$0 <previous release tag>
|
||||
EOM
|
||||
exit 1
|
||||
}
|
||||
|
||||
[[ -n "$1" ]] || usage
|
||||
PREV_RELEASE=$1
|
||||
VERSION=HEAD
|
||||
URL="https://api.github.com/repos/docker/compose/compare"
|
||||
|
||||
curl -sf "$URL/$PREV_RELEASE...$VERSION" | \
|
||||
jq -r '.commits[].author.login' | \
|
||||
sort | \
|
||||
uniq -c | \
|
||||
sort -nr | \
|
||||
awk '{print "@"$2","}' | \
|
||||
xargs echo
|
||||
Loading…
Add table
Add a link
Reference in a new issue