Skip to content

Commit 4908d30

Browse files
committed
Update the README
1 parent aea9533 commit 4908d30

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,21 @@ The following can be configured:
290290
- `Rulesets`
291291
- `Environments` - wait timer, required reviewers, prevent self review, protected branches deployment branch policy, custom deployment branch policy, variables, deployment protection rules
292292

293-
It is possible to provide an `include` or `exclude` settings to restrict the `collaborators`, `teams`, `labels` to a list of repos or exclude a set of repos for a collaborator.
293+
> [!important]
294+
> It is possible to provide an `include` or `exclude` settings to restrict the `collaborators`, `teams`, `labels` to a list of repos or exclude a set of repos for a collaborator.
295+
> The include/exclude pattern can also be for glob. For e.g.:
296+
```
297+
teams:
298+
- name: Myteam-admins
299+
permission: admin
300+
- name: Myteam-developers
301+
permission: push
302+
- name: Other-team
303+
permission: push
304+
include:
305+
- '*-config'
306+
```
307+
> Will only add `Other-team` to only `*-config` repos
294308
295309
See [`docs/sample-settings/settings.yml`](docs/sample-settings/settings.yml) for a sample settings file.
296310

0 commit comments

Comments
 (0)