Show the applicable codeowner(s) for each file when reviewing a pull request
See original GitHub issueDescription
we’d need to parse the CODEOWNERS
file and for each file in the PR, take the applicable codeowners.
note that there might be multiple ones that apply. I initally thought that displaying the codeowner in the top column of the file, e.g. next to “Viewed” checkbox, or next to the filename itself might make sense, but now not sure since we don’t want to clutter. maybe would make sense to show the codeowner if it’s only 1, and if there’re multiple ones - show a preview of the avatars, and allow clicking on them to expand.
this would be useful for reviewing - a bigger project is owner by multiple teams, or just different people, and its common when someone asks for a review in slack to cc the main codeowners to get the pr reviewed faster.
Screenshot
No response
Example URL
https://github.com/refined-github/refined-github/pull/3/files
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
Isn’t that already the case? Example: https://togithub.com/NixOS/nixpkgs/pull/141261/files
I assume the question is answered, if that’s not what you asked please reply with more details (or better, with a mockup).