简体   繁体   中英

Is possible to add an Azure DevOps Group of users through Azure CLI 'az repos policy required-reviewer create' command?

At Microsoft documentation we have following section: Automatically include code reviewers

There are two guides:

  1. Default selected that is how to automatically include code reviewers by Browser at your Azure DevOps project repository
  2. The other option is to do it through Azure CLI that is the case that I am asking

At the first guide you could find that we are allow to 'Add people and groups to Reviewers.' BUT at the guide to do it through Azure CLI there is nothing about being able to do it with parameter '--required-reviewer-ids'

I wanted to know if it is possible to do it giving ADO Team identifier value to --required-reviewer-ids and this will take in charge to add every team member of this group

I wanted to know if it is possible to do it giving ADO Team identifier value to --required-reviewer-ids and this will take in charge to add every team member of this group

Yes, you can pass the Team id to the --requried-reviewer-ids flag to the cmdlet az repos policy required-reviewer create . once the team is added as a reviewer it will trigger an email to all the members in the team when there is any pull request.

We have tested this in our local environment it is working fine.

Here is the sample output for reference:

在此处输入图像描述

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM