1. About the relationship to existed defined "default reviewer", will CODEOWNER be an addon? or replacement?
2. When PR is created by calling https://api.bitbucket.org/2.0, will the "codeowner" be automatically added? the current "default reviewer" is not automatically added.
Hi Kyle,
Thank you for reaching out.
1. About the relationship to existed defined "default reviewer", will CODEOWNER be an addon? or replacement?
If user A is a default reviewer and user B is in the CODEOWNERS file for *.py files, then raising a PR where *.py files have changed is going to add both user A and user B to the reviewers.
Please keep in mind that these users are added as reviewers on the pull request creation page, and they are not enforced. The user who raises the PR can still manually remove reviewers that are added by Codeowners or by Default reviewers.
2. When PR is created by calling https://api.bitbucket.org/2.0, will the "codeowner" be automatically added? the current "default reviewer" is not automatically added.
Neither users in CODEOWNERS nor default reviewers will be added when creating a PR via API. If you use the API, you will need to explicitly specify reviewers in the API call. You can see an example here:
Please feel free to reach out if you have any questions!
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.