跳转到内容

cnb-rs pr labels remove

cnb-rs pr labels remove <NUMBER> <NAME> [<NAME>...]
cnb-rs pr labels rm     <NUMBER> <NAME> [<NAME>...]

按名字删除指定标签(不影响其他)。

CNB API 每次只能删一个标签,本命令在 client 端循环逐个调用;其中一个失败会停止后续(fail-stop)。

API

DELETE ${CNB_API_ENDPOINT}/{repo}/-/pulls/{number}/labels/{name}(每个标签一次调用)

另请参阅

Released under the MIT License.