cnb-rs commit annotation delete
cnb-rs commit annotation delete <SHA> <KEY> [-y]
cnb-rs commit annotation rm <SHA> <KEY> [-y]删除指定 commit annotation 的 key。
不可恢复
删除操作不可恢复。默认弹确认提示,加 -y/--yes 跳过(适用于脚本)。
选项
<SHA>: Commit SHA(必填)<KEY>: 要删除的 annotation key(必填)-y, --yes: 跳过确认提示
继承的全局选项:
--repo <REPO>: 指定仓库路径--domain <DOMAIN>: 指定目标域名
示例
bash
# 删除指定 annotation(弹确认)
$ cnb-rs commit annotation delete 349be5a deploy
# 简短 alias
$ cnb-rs commit annotation rm 349be5a deploy
# 跳过确认(CI / 脚本)
$ cnb-rs commit annotation rm 349be5a deploy -y
✓ 已删除 Commit 349be5a 的 annotation `deploy`