GithubのLabel設定 Export, Import
Getting Started | GitHub Developer Guide
Create an OAuth token
2段階認証をしている場合。
curl -i -u ${your_username} -H "X-GitHub-OTP: ${your_2fa_OTP_code}" -d '{"scopes": ["repo"], "note": "labels"}' https://api.github.com/authorizations
https://github.com/settings/tokens からでもおk
Export
curl -i -H "Authorization: token ${token}" https://api.github.com/repos/:owner/:repo/labels
https://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository
Import
curl -i -H "Authorization: token ${token}" -d '{ "name": "foo", "color": "ff0000" }' https://api.github.com/repos/${owner}/${repo}/labels ...
https://developer.github.com/v3/issues/labels/#create-a-label