Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: collapse codeowners into directories when possible #98

Open
jpmcb opened this issue Aug 27, 2024 · 0 comments
Open

Feature: collapse codeowners into directories when possible #98

jpmcb opened this issue Aug 27, 2024 · 0 comments

Comments

@jpmcb
Copy link
Member

jpmcb commented Aug 27, 2024

Suggested solution

Right now, the code owners generation will granularly denote codeowners for each file in the git tree:

path/to/file1 @jpmcb
path/to/file2 @jpmcb
path/to/file3 @jpmcb

In this case, it makes sense to just collapse the directory to:

path/to/ @jpmcb

since all files under that tree are owned by that person. There are probably 1000 and 1 edge cases on this so it'll be critical to think through the data structures and the algorithms for how this would work. Likely, off the top of my head, we'd probably want to take a tree traversal approach where we go deep first over breadth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant