Is the only difference between them that dynamically add will update when a PR is updated, while auto-add will only add when a PR is created?
If using dynamically add, if the members of a mandatory reviewer group are updated (new members added), and the PR is updated, will it get the new members added to the PR?
Does updating a PR refer to only adding/removing commits? What about editing the PR description/title or anything else you can edit without making a new commit?
Documentation:
"Using this script, you can automatically add reviewers when a pull request (PR) is created."
"Using this script, you can dynamically add default and mandatory reviewers based on a script when a pull request (PR) is created or updated."
The main difference is that, for dynamically add reviewers listener, the "configuration script" field allows you to script more complicated logics on adding the reviewers.
For example, you might want a reviewer from same time zone as mandatory, reviewers from different time zones as normal reviewers.
For time zone use case, there is an related merge check example for enforcing reviewers in several timezones.
Hope this helps.
Thank you. I also found both will trigger for the same events (PR opened or updated with new commits).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.