Skip to content

Commit 91d7dc6

Browse files
authored
Merge pull request #7288 from keymanapp/chore/labeling-tweak
chore: improve auto labeling
2 parents 198611f + ec865c9 commit 91d7dc6

File tree

2 files changed

+37
-7
lines changed

2 files changed

+37
-7
lines changed

.github/multi-labeler.yml

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ version: v1
1111
#
1212

1313
labels:
14+
#
15+
# conventional commit / semantic PR styles
16+
#
17+
1418
- label: 'feat'
1519
matcher:
1620
title: '^feat(\(|:)'
@@ -20,26 +24,48 @@ labels:
2024
- label: 'chore'
2125
matcher:
2226
title: '^chore(\(|:)'
23-
# "change",
2427
- label: 'docs'
2528
matcher:
2629
title: '^docs(\(|:)'
27-
# "style",
2830
- label: 'refactor'
2931
matcher:
3032
title: '^refactor(\(|:)'
31-
# "test",
3233
- label: 'auto'
3334
matcher:
3435
title: '^auto(\(|:)'
3536

36-
# Below are the scopes that we look for in the PR title
37+
#
38+
# additional meta flags
39+
#
40+
41+
# stable-targeted patches; note, this does not pick up chained PRs automatically
42+
- label: 'stable'
43+
matcher:
44+
baseBranch: '^stable-.+'
45+
46+
# PRs marked as cherry-picks by title
47+
- label: 'cherry-pick'
48+
matcher:
49+
title: '(🍒|:cherries:)'
50+
51+
# long-lived feature branches
52+
- label: 'feature-branch'
53+
matcher:
54+
branch: '^feature-.+'
55+
56+
#
57+
# Scopes that we look for in the PR title
58+
#
59+
3760
- label: 'android/'
3861
matcher:
3962
title: '\(.*android.*\):'
4063
- label: 'common/'
4164
matcher:
4265
title: '\(.*common.*\):'
66+
- label: 'core/'
67+
matcher:
68+
title: '\(.*core.*\):'
4369
- label: 'developer/'
4470
matcher:
4571
title: '\(.*developer.*\):'
@@ -62,6 +88,10 @@ labels:
6288
matcher:
6389
title: '\(.*windows.*\):'
6490

65-
- label: 'cherry-pick'
91+
#
92+
# epics -- we will add/remove these as we work on new epics each release
93+
#
94+
95+
- label: 'epic-ldml'
6696
matcher:
67-
title: '(🍒|:cherries:)'
97+
branch: '.*epic-ldml.*' # anywhere in the branch name, e.g. feat/epic-ldml/developer/... or feat/developer/foo-epic-ldml

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1313
- name: Update labels based on PR title
1414
id: labeler
15-
uses: fuxingloh/multi-labeler@8afa186ed03230c98fe24ebf9fe35093072ad46e # v1.4.0
15+
uses: fuxingloh/multi-labeler@fb9bc28b2d65e406ffd208384c5095793c3fd59a # v1.8.0
1616
with:
1717
github-token: ${{secrets.GITHUB_TOKEN}}
1818
config-path: .github/multi-labeler.yml

0 commit comments

Comments
 (0)