Skip to content

Commit 27974d8

Browse files
[support-infra] Fix typeLabels (#311)
Signed-off-by: Olivier Tassinari <[email protected]>
1 parent 27ab816 commit 27974d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/scripts/prs/checkTypeLabel.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ const createEnumerationFromArray = (stringArray) =>
1010
: stringArray.map((s) => `\`${s}\``).join('');
1111

1212
const typeLabels = [
13-
'docs',
14-
'release',
1513
'bug',
16-
'regression',
17-
'maintenance',
18-
'dependencies',
14+
'regression', // a sub-type of bug but we flatten it.
1915
'enhancement',
2016
'new feature',
17+
// Those are not "Types" labels, they are "Kind of work" labels, but we don't want to have to handle the overhead of
18+
// setting “Types” labels with them.
19+
'release',
20+
'dependencies',
2121
];
2222
const labelRegex = new RegExp(`\\b(${typeLabels.join('|')})\\b`, 'i');
2323

0 commit comments

Comments
 (0)