README.md in code_ownership-1.28.2 vs README.md in code_ownership-1.29.0

- old
+ new

@@ -90,9 +90,20 @@ Under the hood, this finds the file where the class is defined and returns the owner of that file. See `code_ownership_spec.rb` for an example. +### `for_team` +`CodeOwnership.for_team` can be used to generate an ownership report for a team. +```ruby +CodeOwnership.for_team('My Team') +``` + +You can shovel this into a markdown file for easy viewing using the CLI: +``` +bin/codeownership for_team 'My Team' > tmp/ownership_report.md +``` + ## Usage: Generating a `CODEOWNERS` file A `CODEOWNERS` file defines who owns specific files or paths in a repository. When you run `bin/codeownership validate`, a `.github/CODEOWNERS` file will automatically be generated and updated. ## Proper Configuration & Validation