curl --location --request PUT 'https://api.github.com/repos///issues//labels' \
--header 'Content-Type: application/json' \
--data-raw '{
"labels": [
"bug",
"enhancement"
]
}'
[
{
"color": "FFFFFF",
"default": true,
"description": "Something isn't working",
"id": 208045946,
"name": "bug",
"node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
"url": "https://api.github.com/repositories/42/labels/bug"
}
]
Authorization: Bearer ********************
string
or an array
of labels directly, but GitHub recommends passing an object with the labels
key.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通