|
1 | 1 | files: |
2 | 2 | - .github/labeler.yml: |
3 | | - content: | |
4 | | - # Add 'root' label to any root file changes |
5 | | - # Quotation marks are required for the leading asterisk |
6 | | - root: |
7 | | - - changed-files: |
8 | | - - any-glob-to-any-file: '*' |
9 | | -
|
10 | | - # Add 'AnyChange' label to any changes within the entire repository |
11 | | - AnyChange: |
12 | | - - changed-files: |
13 | | - - any-glob-to-any-file: '**' |
| 3 | + content: | |
| 4 | + # Add 'root' label to any root file changes |
| 5 | + # Quotation marks are required for the leading asterisk |
| 6 | + root: |
| 7 | + - changed-files: |
| 8 | + - any-glob-to-any-file: '*' |
14 | 9 |
|
15 | | - # Add 'Documentation' label to any changes within 'docs' folder or any subfolders |
16 | | - Documentation: |
17 | | - - changed-files: |
18 | | - - any-glob-to-any-file: docs/** |
| 10 | + # Add 'AnyChange' label to any changes within the entire repository |
| 11 | + AnyChange: |
| 12 | + - changed-files: |
| 13 | + - any-glob-to-any-file: '**' |
19 | 14 |
|
20 | | - # Add 'Documentation' label to any file changes within 'docs' folder |
21 | | - Documentation: |
22 | | - - changed-files: |
23 | | - - any-glob-to-any-file: docs/* |
| 15 | + # Add 'Documentation' label to any changes within 'docs' folder or any subfolders |
| 16 | + Documentation: |
| 17 | + - changed-files: |
| 18 | + - any-glob-to-any-file: docs/** |
24 | 19 |
|
25 | | - # Add 'Documentation' label to any file changes within 'docs' or 'guides' folders |
26 | | - Documentation: |
27 | | - - changed-files: |
28 | | - - any-glob-to-any-file: |
29 | | - - docs/* |
30 | | - - guides/* |
| 20 | + # Add 'Documentation' label to any file changes within 'docs' folder |
| 21 | + Documentation: |
| 22 | + - changed-files: |
| 23 | + - any-glob-to-any-file: docs/* |
31 | 24 |
|
32 | | - ## Equivalent of the above mentioned configuration using another syntax |
33 | | - Documentation: |
34 | | - - changed-files: |
35 | | - - any-glob-to-any-file: ['docs/*', 'guides/*'] |
| 25 | + # Add 'Documentation' label to any file changes within 'docs' or 'guides' folders |
| 26 | + Documentation: |
| 27 | + - changed-files: |
| 28 | + - any-glob-to-any-file: |
| 29 | + - docs/* |
| 30 | + - guides/* |
36 | 31 |
|
37 | | - # Add 'Documentation' label to any change to .md files within the entire repository |
38 | | - Documentation: |
39 | | - - changed-files: |
40 | | - - any-glob-to-any-file: '**/*.md' |
| 32 | + ## Equivalent of the above mentioned configuration using another syntax |
| 33 | + Documentation: |
| 34 | + - changed-files: |
| 35 | + - any-glob-to-any-file: ['docs/*', 'guides/*'] |
41 | 36 |
|
42 | | - # Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder |
43 | | - source: |
44 | | - - all: |
| 37 | + # Add 'Documentation' label to any change to .md files within the entire repository |
| 38 | + Documentation: |
45 | 39 | - changed-files: |
46 | | - - any-glob-to-any-file: 'src/**/*' |
47 | | - - all-globs-to-all-files: '!src/docs/*' |
| 40 | + - any-glob-to-any-file: '**/*.md' |
| 41 | +
|
| 42 | + # Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder |
| 43 | + source: |
| 44 | + - all: |
| 45 | + - changed-files: |
| 46 | + - any-glob-to-any-file: 'src/**/*' |
| 47 | + - all-globs-to-all-files: '!src/docs/*' |
| 48 | +
|
| 49 | + # Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name |
| 50 | + feature: |
| 51 | + - head-branch: ['^feature', 'feature'] |
| 52 | +
|
| 53 | + # Add 'release' label to any PR that is opened against the `{{@ current_repo() | default_branch @}}` branch |
| 54 | + release: |
| 55 | + - base-branch: '{{@ current_repo() | default_branch @}}' |
48 | 56 |
|
49 | | - # Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name |
50 | | - feature: |
51 | | - - head-branch: ['^feature', 'feature'] |
| 57 | + # Add 'bug' label to any PR where the head branch name starts with `bug` or has a `bug` section in the name |
| 58 | + bug: |
| 59 | + - head-branch: ['^bug', 'bug'] |
52 | 60 |
|
53 | | - # Add 'release' label to any PR that is opened against the `{{@ current_repo() | default_branch @}}` branch |
54 | | - release: |
55 | | - - base-branch: '{{@ current_repo() | default_branch @}}' |
| 61 | + # Add 'docs' label to any PR where the head branch name starts with `docs` or has a `docs` section in the name |
| 62 | + docs: |
| 63 | + - head-branch: ['^docs', 'docs'] |
56 | 64 | - .github/workflows/labeler.yaml: |
57 | 65 | content: | |
58 | 66 | name: "labeler" |
|
0 commit comments