1
0
Fork 0
peertube/scripts/generate-code-contributors.sh

27 lines
995 B
Bash
Raw Normal View History

2018-03-27 08:35:12 +00:00
#!/bin/sh
set -eu
2018-02-15 18:33:20 +00:00
2018-06-22 14:20:44 +00:00
echo -e "# Code\n"
2018-02-15 18:33:20 +00:00
curl -s https://api.github.com/repos/chocobozzz/peertube/contributors | \
2018-04-23 12:50:00 +00:00
jq -r 'map(" * [" + .login + "](" + .url + ")") | .[]' | \
sed 's/api.github.com\/users/github.com/g'
2018-06-22 14:20:44 +00:00
###################################################
echo -e "\n\n# Translations\n"
curl -s \
-H "Accept: application/json" \
-H "X-Auth-User: $(grep trad.framasoft.org.username ~/.config/zanata.ini | sed 's@.*=@@')" \
-H "X-Auth-Token: $(grep trad.framasoft.org.key ~/.config/zanata.ini | sed 's@.*=@@')" \
"https://trad.framasoft.org/zanata/rest/project/peertube/version/develop/contributors/2018-01-01..$(date +%Y-%m-%d)" \
| jq -r 'map(" * [" + .username + "](https://trad.framasoft.org/zanata/profile/view/" + .username + ")") | .[]'
###################################################
echo -e "\n\n# Design\n"
echo -e "By [Olivier Massain](https://twitter.com/omassain)\n"
echo -e "Icons from [Robbie Pearce](https://robbiepearce.com/softies/)"