codeowners-checker icon indicating copy to clipboard operation
codeowners-checker copied to clipboard

Add 'list' command to list all files owned for a given owner

Open rstawarz opened this issue 5 years ago • 2 comments

Adds a simple list command to verify ownership of files for a given owner. I found this useful when making changes to CODEOWNERS in large code bases with complex rules.

example usage: codeowners-checker list @owner1

rstawarz avatar Jun 03 '20 21:06 rstawarz

@jonatas - Thanks! I wasn't sure how this fit into the tool, happy to adjust if you have a better vision of how this should work, just let me know

rstawarz avatar Jun 05 '20 17:06 rstawarz

@rstawarz please add some high level documentation on the README too.

It looks a bit weird that we have list now and filter command looks very similar. I was looking for a way to unify them like:

code-owners-checker list --only-changes
code-owners-checker list --owner=some-owner

It seems like list and filter are almost interchangeable and we can even combine them.

code-owners-checker list --only-changes --owner=some-owner

I'm just thinking aloud here. @ekadlecova, @dennissivia, @bamorim any thoughts about it?

jonatas avatar Jun 09 '20 23:06 jonatas