跳转到内容

cnb-rs commit

cnb-rs commit <command> [options]

管理 Commit:浏览、元数据、检查状态。附件管理已分离到 cnb-rs asset 顶级组。

可用命令

示例

bash
# 列最近 10 个 commit
$ cnb-rs commit list -L 10

# 列指定作者的 commit
$ cnb-rs commit list --author 'illegal_name' -L 5

# 查看单个 commit 详情(git-style 文本)
$ cnb-rs commit show 349be5a

# 比较两个 ref 的差异
$ cnb-rs commit compare main feature-branch

# 显示 commit 的 CI 检查状态
$ cnb-rs commit status 349be5a

# 设置 / 列 / 删除 commit 元数据
$ cnb-rs commit annotation set 349be5a 'deploy=prod' 'reviewer=alice'
$ cnb-rs commit annotation list 349be5a
$ cnb-rs commit annotation rm   349be5a deploy -y

另请参阅

  • cnb-rs asset — Commit 附件管理(迁移后的入口)
  • cnb-rs pr — Pull Request 管理(含 PR 关联 commits)

Released under the MIT License.