aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/generate-code-contributors.sh
blob: 46bf86234dc520ba55a8d12da3e5412fd4e610bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

set -eu

echo -e "# Code\n"

curl -s https://api.github.com/repos/chocobozzz/peertube/contributors | \
  jq -r 'map(" * [" + .login + "](" + .url + ")") | .[]' | \
  sed 's/api.github.com\/users/github.com/g'

###################################################

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/)"