Open akitching opened 4 years ago
Was looking to use the CLI to add a PR Status Check to support differential code coverage unfortunately it does not seem to be possible. The only possible way to achieve this is by using the Az DevOps API as previously stated by @akitching
Is your feature request related to a problem? Please describe. There don't appear to be commands for creating and managing Status Check policies, even though policies created in the UI are reported when using
az repos policy list
.Describe the solution you'd like Add a new status-check subgroup under policies with create and update commands to match the other policy types.
az repos policy status-check create
az repos policy status-check update
Additional context In case it helps anyone else, the Bash snippet below (using the wonderfully helpful invoke command) can be used in the meantime as a workaround to create status check policies.
https://docs.microsoft.com/en-us/rest/api/azure/devops/policy/configurations/create?view=azure-devops-rest-5.1