]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - scripts/generate-code-contributors.sh
Update credits
[github/Chocobozzz/PeerTube.git] / scripts / generate-code-contributors.sh
CommitLineData
0e4ffb4b
LA
1#!/bin/sh
2
3set -eu
86acad02 4
cd080b1a
C
5echo -e "# Code\n"
6
86acad02 7curl -s https://api.github.com/repos/chocobozzz/peertube/contributors | \
3e5ff432
C
8 jq -r 'map(" * [" + .login + "](" + .url + ")") | .[]' | \
9 sed 's/api.github.com\/users/github.com/g'
cd080b1a
C
10
11###################################################
12
13echo -e "\n\n# Translations\n"
14
15curl -s \
16 -H "Accept: application/json" \
17 -H "X-Auth-User: $(grep trad.framasoft.org.username ~/.config/zanata.ini | sed 's@.*=@@')" \
18 -H "X-Auth-Token: $(grep trad.framasoft.org.key ~/.config/zanata.ini | sed 's@.*=@@')" \
19 "https://trad.framasoft.org/zanata/rest/project/peertube/version/develop/contributors/2018-01-01..$(date +%Y-%m-%d)" \
20 | jq -r 'map(" * [" + .username + "](https://trad.framasoft.org/zanata/profile/view/" + .username + ")") | .[]'
21
22###################################################
23
24echo -e "\n\n# Design\n"
25
26echo -e "By [Olivier Massain](https://twitter.com/omassain)\n"
27echo -e "Icons from [Robbie Pearce](https://robbiepearce.com/softies/)"