~kaction/config

ref: cae7bd4c8c0af6ac8a86e7bd2b778bd0d094cd99 config/aux/salsa-accessible -rwxr-xr-x 570 bytes
cae7bd4c — Dmitry Bogatov Simplify build system: avoid dependency on net 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
#!/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
echo "set -- $*"