Use codeowners to suggest reviewers, NOT automatically assign #22866
-
Hi there! My team has recently added codeowners. In the past few weeks we’ve found that automatically assigning reviewers when someone creates a PR is disruptive to a lot of individual workflows. How can we use codeowners to populate the “Suggestion” dropdown, and allow teammates to manually select when they’re ready for review? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
There isn’t an option to make CODEOWNERS work in the way you describe. The Suggestion dropdown is populated based on who has modified certain files in the past. If you want a system that works similarly to the way you describe, you would have to create some other kind of owners system and the tooling to request reviews from the owners. You could perhaps use Probot for something like that. You may want to look at the Auto Assign Probot app for inspiration. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much! The Auto Assign Probot looks perfect for our needs! |
Beta Was this translation helpful? Give feedback.
-
My team was having this same issue, and I found this thread from a Google search. Figure I'd update with our solution: have authors use the (now available) "draft PR" feature. See: https://github.blog/2019-02-14-introducing-draft-pull-requests/ This bit in particular: "Also, if you have a CODEOWNERS file in your repository, a draft pull request will suppress notifications to those reviewers until it is marked as ready for review." |
Beta Was this translation helpful? Give feedback.
There isn’t an option to make CODEOWNERS work in the way you describe. The Suggestion dropdown is populated based on who has modified certain files in the past. If you want a system that works similarly to the way you describe, you would have to create some other kind of owners system and the tooling to request reviews from the owners. You could perhaps use Probot for something like that. You may want to look at the Auto Assign Probot app for inspiration.