跳转到内容

cnb-rs issue assignees check

cnb-rs issue assignees check <NUMBER> <USERNAME>

Pre-flight 校验:检查用户是否可以被 assign 到 Issue。

Exit Code

  • 0 — 用户可以被 assign
  • 1 — 不能被 assign(无权限 / 不存在 / 被冻结)+ stderr 打详细错误

CI 范例

bash
if cnb-rs --repo $REPO issue assignees check 123 alice; then
  cnb-rs --repo $REPO issue assignees add 123 alice
fi

API

GET ${CNB_API_ENDPOINT}/{repo}/-/issues/{number}/assignees/{username}

另请参阅

Released under the MIT License.