az repos pr reviewer
Note
This reference is part of the azure-devops extension for the Azure CLI (version 2.30.0 or higher). 该扩展将在首次运行 az repos pr reviewer 命令时自动安装。 Learn more about extensions.
管理拉取请求审阅者。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az repos pr reviewer add |
向拉取请求添加一个或多个审阅者。 |
Extension | GA |
az repos pr reviewer list |
列出拉取请求的审阅者。 |
Extension | GA |
az repos pr reviewer remove |
从拉取请求中删除一个或多个审阅者。 |
Extension | GA |
az repos pr reviewer add
向拉取请求添加一个或多个审阅者。
az repos pr reviewer add --id
--reviewers
[--detect {false, true}]
[--org --organization]
[--required {false, true}]
必需参数
拉取请求的 ID。
要作为审阅者包含在拉取请求上的用户或组。 Space separated.
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
自动检测组织。
属性 | 值 |
---|---|
接受的值: | false, true |
Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或通过 git 配置选取,则为必需。示例:https://dev.azure.com/MyOrganizationName/
。
使审阅者是必需的。
属性 | 值 |
---|---|
接受的值: | false, true |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az repos pr reviewer list
列出拉取请求的审阅者。
az repos pr reviewer list --id
[--detect {false, true}]
[--org --organization]
必需参数
拉取请求的 ID。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
自动检测组织。
属性 | 值 |
---|---|
接受的值: | false, true |
Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或通过 git 配置选取,则为必需。示例:https://dev.azure.com/MyOrganizationName/
。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az repos pr reviewer remove
从拉取请求中删除一个或多个审阅者。
az repos pr reviewer remove --id
--reviewers
[--detect {false, true}]
[--org --organization]
必需参数
拉取请求的 ID。
用户或组在拉取请求中作为审阅者删除。 Space separated.
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
自动检测组织。
属性 | 值 |
---|---|
接受的值: | false, true |
Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或通过 git 配置选取,则为必需。示例:https://dev.azure.com/MyOrganizationName/
。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |