Instead of relying on GitLab's API, it's probably a better idea to just use git
remotes properly. I put together a script [0] to automate the process to set the
primary remote to Sourcehut (git.sr.ht) and mirror to GitLab and GitHub. And yes,
that script is in a repo that's also mirrored to GitHub and GitLab (check the
README). It combines well with my `git pushall` alias [1].
[0]: https://git.sr.ht/~seirdy/dotfiles/tree/master/Executables/s...
[1]: https://git.sr.ht/~seirdy/dotfiles/tree/master/.config/git/c...