Created
November 3, 2021 03:18
-
-
Save zhouqiang-cl/f39b7bfe69bb2e3a0dee4fb072443922 to your computer and use it in GitHub Desktop.
create_label.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repo_list="pingcap/tidb tikv/tikv pingcap/tidb-binlog pingcap/ticdc pingcap/enterprise-plugin pingcap/kvproto pingcap/tidb-test" | |
set -x | |
for repo in $repo_list;do | |
curl \ | |
-X POST -H "Authorization: token $TOKEN" \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
https://api.github.com/repos/$repo/labels \ | |
-d '{"name":"needs-cherry-pick-5.3","color":"000000","description":"Type: Need cherry pick to release-5.3"}' | |
done | |
repo_list="tikv/pd pingcap/tics pingcap/tiflash" | |
set -x | |
for repo in $repo_list;do | |
curl \ | |
-X POST -H "Authorization: token $TOKEN" \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
https://api.github.com/repos/$repo/labels \ | |
-d '{"name":"needs-cherry-pick-release-5.3","color":"000000","description":"Type: Need cherry pick to release-5.3"}' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment