~kaction/config

ref: 454b52e97b7bffbd95a34b1d75922a4bbb37b724 config/volatile/update/salsa.list -rwxr-xr-x 632 bytes
454b52e9 — Dmitry Bogatov Setup scripts to update volatile data 3 years ago
                                                                                
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
#!/bin/sh -eu
set --
call_api () {
    curl --silent "https://salsa.debian.org/api/v4/$*"
}

tmpfile=$(mktemp)
cleanup () { rm -f "${tmpfile}"; }
trap cleanup 0

for team in runit-team haskell-team ; do
    call_api "groups/$team/projects?simple=yes" > "${tmpfile}"
    eval set -- "$@" "$(jq 'map(.path_with_namespace)|@sh' "${tmpfile}")"
done

for user in iu-guest ; do
    call_api "users/$user/projects?simple=yes" > "${tmpfile}"
    eval set -- "$@" "$(jq 'map(.path_with_namespace)|@sh' "${tmpfile}")"
done

set -- "$@" debian/bcron debian/slgdbm
eval set -- "$@" # remove extra pair of quotes
export IFS='
'
echo "$*" | sort