前提: curl, yq, gh, pnpm
また、repo scope が設定された GitHub access token で gh にログインしている必要があります。
curl -sL 'https://github.com/go-gitea/gitea/raw/refs/heads/main/options/label/Advanced.yaml' | yq '.labels | map({name: .name, color: .color | tostring, description: .description})' > /tmp/labels.json && pnpm dlx github-label-sync -a "$(gh auth token)" -l /tmp/labels.json myname/myrepo