You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,8 @@ The base match object is defined as:
44
44
- all-globs-to-all-files: ['list', 'of', 'globs']
45
45
- base-branch: ['list', 'of', 'regexps']
46
46
- head-branch: ['list', 'of', 'regexps']
47
+
- description: 'Description of label'
48
+
- color: 'Color of label'
47
49
```
48
50
49
51
There are two top-level keys, `any` and `all`, which both accept the same configuration options:
@@ -79,6 +81,8 @@ The fields are defined as follows:
79
81
- `any-glob-to-all-files`: ANY glob must match against ALL changed files
80
82
- `all-globs-to-any-file`: ALL globs must match against ANY changed file
81
83
- `all-globs-to-all-files`: ALL globs must match against ALL changed files
84
+
- `description`: The description of the label if creating it
85
+
- `color`: The color of the label if creating it (6-character hex, with or without `#`)
82
86
83
87
If a base option is provided without a top-level key, then it will default to `any`. More specifically, the following two configurations are equivalent:
84
88
```yml
@@ -151,6 +155,13 @@ feature:
151
155
# Add 'release' label to any PR that is opened against the `main` branch
152
156
release:
153
157
- base-branch: 'main'
158
+
159
+
# Define label properties
160
+
created-label:
161
+
- changed-files:
162
+
- any-glob-to-any-file: '*'
163
+
- description: "This label was created if it didn't already exist"
164
+
- color: "abcdef"
154
165
```
155
166
156
167
### Create Workflow
@@ -319,4 +330,4 @@ Once you confirm that the updated configuration files function as intended, you
319
330
320
331
## Contributions
321
332
322
-
Contributions are welcome! See the [Contributor's Guide](CONTRIBUTING.md).
333
+
Contributions are welcome! See the [Contributor's Guide](CONTRIBUTING.md).
0 commit comments