mirror of
https://github.com/actions/labeler.git
synced 2025-12-12 12:37:48 +00:00
Improve warning
This commit is contained in:
@@ -47,16 +47,19 @@ label1:
|
|||||||
|
|
||||||
From a boolean logic perspective, top-level match objects are `OR`-ed together and individual match rules within an object are `AND`-ed. Combined with `!` negation, you can write complex matching rules.
|
From a boolean logic perspective, top-level match objects are `OR`-ed together and individual match rules within an object are `AND`-ed. Combined with `!` negation, you can write complex matching rules.
|
||||||
|
|
||||||
|
> ⚠️ This action uses [micromatch](https://www.npmjs.com/package/micromatch) for apply globs.
|
||||||
|
> For historical reasons, paths starting with dot (e.g. `.github`) are not matched by default.
|
||||||
|
> You need to set `dot: true` to change this behavior.
|
||||||
|
> See [Inputs](#inputs) table below for details.
|
||||||
|
|
||||||
#### Basic Examples
|
#### Basic Examples
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
# Add 'label1' to any changes within 'example' folder or any subfolders
|
# Add 'label1' to any changes within 'example' folder or any subfolders
|
||||||
# (this does not apply to files starting with dot by default – see inputs table below)
|
|
||||||
label1:
|
label1:
|
||||||
- example/**/*
|
- example/**/*
|
||||||
|
|
||||||
# Add 'label2' to any file changes within 'example2' folder
|
# Add 'label2' to any file changes within 'example2' folder
|
||||||
# (this does not apply to files starting with dot by default – see inputs table below)
|
|
||||||
label2: example2/*
|
label2: example2/*
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user