Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save TwoSquirrels/c1b83ba77eca0ca6c90e6e01591fbd2c to your computer and use it in GitHub Desktop.

Select an option

Save TwoSquirrels/c1b83ba77eca0ca6c90e6e01591fbd2c to your computer and use it in GitHub Desktop.
GitHub のラベルを Gitea Advanced ラベルセットにするやつ

GitHub のラベルを Gitea Advanced ラベルセットにするやつ

前提: 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

Warning

既に設定されているラベルは全て削除されます!
残したい場合は、後ろに -A オプションを付与してください。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment