Skip to content

Commit

Permalink
Improve "commonRequireFilesInCodeowners" docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sogame committed Oct 19, 2024
1 parent bd424df commit f166eb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/validations.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,17 +260,21 @@ commonPrDescriptionContribution({ minLength: 10, logType: 'fail' });

Check all added files have an owner defined in CODEOWNERS.

`pathsPattern` can be used to restrict the check the folders that match it.

##### Configuration

| Property | Type | Default Value |
| -------------- | -------------------------- | ------------- |
| pathsPattern | regex | /.\*/ |
| codeownersPath | string | CODEOWNERS |
| logType | enum (warn, fail, message) | warn |

##### Usage

```
commonRequireFilesInCodeowners();
commonRequireFilesInCodeowners({ pathsPattern: 'modules/' });
commonRequireFilesInCodeowners({ codeownersPath: '.github/CODEOWNERS' });
commonRequireFilesInCodeowners({ logType: 'fail' });
```
Expand Down

0 comments on commit f166eb9

Please sign in to comment.