Skip to content

Commit 79c3fc0

Browse files
authored
fix: labeler.yml to update label rules
1 parent 2d96502 commit 79c3fc0

1 file changed

Lines changed: 4 additions & 37 deletions

File tree

.github/labeler.yml

Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,13 @@
1-
# Add 'root' label to any root file changes
2-
# Quotation marks are required for the leading asterisk
3-
root:
4-
- changed-files:
5-
- any-glob-to-any-file: '*'
6-
7-
# Add 'AnyChange' label to any changes within the entire repository
8-
AnyChange:
9-
- changed-files:
10-
- any-glob-to-any-file: '**'
11-
12-
# Add 'Documentation' label to any changes within 'docs' subfolder
13-
Documentation:
14-
- changed-files:
15-
- any-glob-to-any-file: docs/**
16-
17-
# Add 'Documentation' label to any file changes within 'docs' or 'guides' folders
18-
Documentation:
19-
- changed-files:
20-
- any-glob-to-any-file:
21-
- docs/*
22-
- guides/*
23-
24-
## Equivalent of the above mentioned configuration using another syntax
25-
Documentation:
26-
- changed-files:
27-
- any-glob-to-any-file: ['docs/*', 'guides/*']
28-
291
# Add 'Documentation' label to any change to .md files within the entire repository
302
Documentation:
313
- changed-files:
324
- any-glob-to-any-file: '**/*.md'
335

34-
# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
35-
source:
36-
- all:
37-
- changed-files:
38-
- any-glob-to-any-file: 'src/**/*'
39-
- all-globs-to-all-files: '!src/docs/*'
40-
41-
# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
426
feature:
43-
- head-branch: ['^feature', 'feature']
7+
- head-branch: ['^add','feature','add:']
8+
9+
fix:
10+
- head-branch: ['^fix','fix','fix:']
4411

4512
# Add 'release' label to any PR that is opened against the `main` branch
4613
release:

0 commit comments

Comments
 (0)