跳转到内容

cnb-rs pr assignees

cnb-rs pr assignees <subcommand>

PR 处理人管理子组。与 pr edit --add-assignee / --remove-assignee 互补:

命令适合场景
pr edit <N> --add-assignee X --add-label bug -t "title"批量更新(一次改多个字段)
pr assignees add <N> X / remove <N> X单一操作(CI / 脚本:精准一件事)
pr assignees list <N>聚焦视图(只看处理人,含 --json
pr assignees check <N> <USER>pre-flight 校验(assign 前确认用户可被指派)

子命令

示例

bash
# 列出 PR #123 的处理人
cnb-rs --repo wwvo/cnb-rs/cnb-rs pr assignees list 123

# 一次加 2 人
cnb-rs --repo wwvo/cnb-rs/cnb-rs pr assignees add 123 alice,bob

# CI 脚本:先校验再 assign
if cnb-rs --repo wwvo/cnb-rs/cnb-rs pr assignees check 123 alice; then
  cnb-rs --repo wwvo/cnb-rs/cnb-rs pr assignees add 123 alice
fi

另请参阅

Released under the MIT License.