跳转到内容

cnb-rs commit annotation list

cnb-rs commit annotation list <SHA>

列出指定 commit 的所有 annotations。

选项

  • <SHA>: Commit SHA(必填)

继承的全局选项:

  • --repo <REPO>: 指定仓库路径
  • --domain <DOMAIN>: 指定目标域名
  • --json: 输出原始 Vec<CommitAnnotation>(含 meta 扩展字段)

示例

bash
$ cnb-rs commit annotation list 349be5a
KEY                VALUE
cnb-rs-test        phase2-ok
deployed           true

# JSON 拿完整字段(含 meta)
$ cnb-rs --json commit annotation list 349be5a | jq '.[].meta'

# 没有 annotations 时友好提示
$ cnb-rs commit annotation list deadbeef
Commit deadbeef 下没有 annotations

另请参阅

Released under the MIT License.