mirror of
https://github.com/actions/labeler.git
synced 2025-12-13 13:07:24 +00:00
* Use consistent indentation style in YAML examples * Fix typo 'indvidual'
This commit is contained in:
14
README.md
14
README.md
@@ -36,14 +36,14 @@ label1:
|
|||||||
- any: ['example1/*']
|
- any: ['example1/*']
|
||||||
```
|
```
|
||||||
|
|
||||||
From a boolean logic perspective, top-level match objects are `OR`-ed together and indvidual 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.
|
||||||
|
|
||||||
#### 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
|
||||||
label1:
|
label1:
|
||||||
- example/**/*
|
- example/**/*
|
||||||
|
|
||||||
# Add 'label2' to any file changes within 'example2' folder
|
# Add 'label2' to any file changes within 'example2' folder
|
||||||
label2: example2/*
|
label2: example2/*
|
||||||
@@ -54,16 +54,16 @@ label2: example2/*
|
|||||||
```yml
|
```yml
|
||||||
# Add 'repo' label to any root file changes
|
# Add 'repo' label to any root file changes
|
||||||
repo:
|
repo:
|
||||||
- ./*
|
- ./*
|
||||||
|
|
||||||
# Add '@domain/core' label to any change within the 'core' package
|
# Add '@domain/core' label to any change within the 'core' package
|
||||||
@domain/core:
|
@domain/core:
|
||||||
- package/core/*
|
- package/core/*
|
||||||
- package/core/**/*
|
- package/core/**/*
|
||||||
|
|
||||||
# Add 'test' label to any change to *.spec.js files within the source dir
|
# Add 'test' label to any change to *.spec.js files within the source dir
|
||||||
test:
|
test:
|
||||||
- src/**/*.spec.js
|
- src/**/*.spec.js
|
||||||
|
|
||||||
# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
|
# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
|
||||||
source:
|
source:
|
||||||
|
|||||||
Reference in New Issue
Block a user