az repos pr policy

Manage pull request policy.

Commands

az repos pr policy list List policies of a pull request.
az repos pr policy queue Queue an evaluation of a policy for a pull request.

az repos pr policy list

List policies of a pull request.

az repos pr policy list --id
[--detect {false, true}]
[--org]
[--skip]
[--top]

Required Parameters

--id

ID of the pull request.

Optional Parameters

--detect

Automatically detect organization.

accepted values: false, true
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--skip

Number of policies to skip.

--top

Maximum number of policies to list.

az repos pr policy queue

Queue an evaluation of a policy for a pull request.

az repos pr policy queue --evaluation-id
--id
[--detect {false, true}]
[--org]

Required Parameters

--evaluation-id -e

ID of the policy evaluation to queue.

--id

ID of the pull request.

Optional Parameters

--detect

Automatically detect organization.

accepted values: false, true
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.