Last active
October 25, 2022 23:42
-
-
Save sajayantony/ff2c8238caa799927d62a99e5f3573bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#gh api repos/opencontainers/image-spec/contributors > /tmp/contributors.json | |
# cat /tmp/contributors.json | jq -r '.[] | @text "| \(.login) | ) | "' | |
get_contributors() | |
{ | |
REPO=$1 | |
FILE_NAME=/tmp/contributors-$REPO.json | |
gh api repos/opencontainers/$REPO/contributors > $FILE_NAME | |
cat $FILE_NAME | jq -r '.[] | @text "| \(.login) | ) | "' | |
} | |
get_contributors image-spec > contributors.md | |
get_contributors distribution-spec >> contributors.md | |
get_contributors wg-reference-types >> contributors.md | |
# Remove duplicates | |
# | |
printf "| Contributor | Avatar | \n|----------|----------|\n" > temp | |
cat contributors.md | sort | uniq >> temp | |
mv temp contributors.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment