Skip to content

Commit 0bc654f

Browse files
author
Trey Philips
committed
feat(is-user-core-member): overrides for CODEOWNERS
Extends the functionality from #706 to another helper
1 parent 16db858 commit 0bc654f

20 files changed

+1465
-318
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ with:
1414
helper: <HELPER NAME>
1515
```
1616
17-
The `helper` input is required for all helpers, and the `github_token` input defaults to the included workflow token `${{ github.token }}`. Additional inputs vary by helper. Each helper file in `src/helpers` contains an interface that defines which additional inputs are required or optional. If a required input is ommitted, the helper will throw a descriptive error.
17+
The `helper` input is required for all helpers, and the `github_token` input defaults to the included workflow token `${{ github.token }}`. Additional inputs vary by helper. Each helper file in `src/helpers` contains an interface that defines which additional inputs are required or optional. If a required input is omitted, the helper will throw a descriptive error.
1818

1919
### Example
2020

@@ -211,6 +211,8 @@ Additionally, the following parameters can be used for additional control over t
211211
### [is-user-core-member](.github/workflows/is-user-core-member.yml)
212212

213213
- Checks if a specified GitHub user is a core member for a given pull request.
214+
- The parameter `codeowners_overrides` can be used to override entries from `CODEOWNERS`. It is a string formatted as comma-separated list of lines in [the `CODEOWNERS` syntax](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-syntax). Exact pattern matches in CODEOWNERS will be replaced. Unmatched patterns will be appended.
215+
- example: `/path/foo @user1 @user2,/path/bar @user3`
214216

215217
### [is-user-in-team](.github/workflows/is-user-in-team.yml)
216218

dist/110.index.js

Lines changed: 55 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)