README.md in code_ownership-1.31.1 vs README.md in code_ownership-1.32.0
- old
+ new
@@ -55,9 +55,20 @@
- frontend/other_location_for_packages/*
```
This defaults `**/`, which makes it look for `package.json` files across your application.
+### Custom Ownership
+To enable custom ownership, you can inject your own custom classes into `code_ownership`.
+To do this, first create a class that adheres to the `CodeOwnership::Mapper` and/or `CodeOwnership::Validator` interface.
+Then, in `config/code_ownership.yml`, you can require that file:
+```yml
+require:
+ - ./lib/my_extension.rb
+```
+
+Now, `bin/codeownership validate` will automatically include your new mapper and/or validator. See [`spec/lib/code_ownership/private/extension_loader_spec.rb](spec/lib/code_ownership/private/extension_loader_spec.rb) for an example of what this looks like.
+
## Usage: Reading CodeOwnership
### `for_file`
`CodeOwnership.for_file`, given a relative path to a file returns a `CodeTeams::Team` if there is a team that owns the file, `nil` otherwise.
```ruby