Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Created November 3, 2021 03:18
Show Gist options
  • Save zhouqiang-cl/f39b7bfe69bb2e3a0dee4fb072443922 to your computer and use it in GitHub Desktop.
Save zhouqiang-cl/f39b7bfe69bb2e3a0dee4fb072443922 to your computer and use it in GitHub Desktop.
create_label.sh
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