Skip to content

Commit 56e93c2

Browse files
authored
Merge pull request #2192 from keymanapp/maint/559-add-labeler
maint: add labeler for issues and PRs
2 parents faf264a + f9bc829 commit 56e93c2

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/multi-labeler.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
version: v1
2+
3+
# This file adds labels based on the scopes in
4+
# keymanapp/keyman:resources/scopes/commit-types.json
5+
# Currently it must be manually kept up to date. Not all labels are added, only
6+
# common ones. The others are commented out.
7+
8+
9+
labels:
10+
#
11+
# conventional commit / semantic PR styles
12+
#
13+
14+
- label: 'auto'
15+
matcher:
16+
title: '^auto(\(|:)'
17+
- label: 'change'
18+
matcher:
19+
title: '^change(\(|:)'
20+
- label: 'chore'
21+
matcher:
22+
title: '^chore(\(|:)'
23+
- label: 'docs'
24+
matcher:
25+
title: '^docs(\(|:)'
26+
- label: 'feat'
27+
matcher:
28+
title: '^feat(\(|:)'
29+
- label: 'fix'
30+
matcher:
31+
title: '^fix(\(|:)'
32+
- label: 'maint'
33+
matcher:
34+
title: '^maint(\(|:)'
35+
- label: 'refactor'
36+
matcher:
37+
title: '^refactor(\(|:)'
38+
- label: 'style'
39+
matcher:
40+
title: '^style(\(|:)'
41+
- label: 'test'
42+
matcher:
43+
title: '^test(\(|:)'

.github/workflows/labeler.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request
4+
5+
jobs:
6+
triage:
7+
if: github.repository == 'keymanapp/help.keyman.com'
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Update labels based on PR title
11+
id: labeler
12+
uses: fuxingloh/multi-labeler@f5bd7323b53b0833c1e4ed8d7b797ae995ef75b4 # v2.0.1
13+
with:
14+
github-token: ${{secrets.GITHUB_TOKEN}}
15+
config-path: .github/multi-labeler.yml

0 commit comments

Comments
 (0)