Show the DRI for the current page in the handbook based on CODEOWNERS
Problem
- User sees a page in the handbook and wants to know who is responsible for the content on it as they have a query relating to it, or
- User wants to make an edit to the page, but aren't sure who to assign it to (this speaks to the user's state of mind before creating the MR, since the MR page already reads the CODEOWNERS data.)
Proposal
Based on the CODEOWNERS file, determine who the DRI is for the specific page and add it to the meta information for the page.
Implementation
The DRI is determined by matching the current file's path to the entries from the CODEOWNERS file.
Where an exact match is not found a CODEOWNERS entry should be looked up for the parent of the current path until an owner is found.
During build time, if no owner is found, an error should be printed out instructing the user to specify an owner in the CODEOWNERS file.
- The DRI names will be under a heading
Maintained by
- People will be displayed as avatars
- Groups will be displayed as square avatars
- Avatars will wrap if they can't fit in one line
Designs
- Screens: #6560[handbook-maintainedby.png]
- Maintainers avatar states: #6560[states-of-dri-avatars.png]
- Figma reference page: https://www.figma.com/file/UKTK43DwFuHAvm3NgjDOsJ/Show-DRI-on-Handbook?node-id=32%3A291
This builds on the issue relating to showing last updated information: #5990
Edited by Michael Le