Skip to content

Commit 9e0bc70

Browse files
committed
feat: multi-labeler
1 parent 220985c commit 9e0bc70

2 files changed

Lines changed: 34 additions & 9 deletions

File tree

.github/multi-labeler.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# .github/labeler.yml
2+
3+
version: v1
4+
5+
labels:
6+
- label: 'enhancement'
7+
sync: true # remove label if match failed, default: false (pull_request/issue only)
8+
matcher:
9+
# Matcher will match on any 8 matchers
10+
title: '^feat:.*'
11+
title: '^feature:.*'
12+
- label: 'bug'
13+
sync: true # remove label if match failed, default: false (pull_request/issue only)
14+
matcher:
15+
# Matcher will match on any 8 matchers
16+
title: '^fix:.*'
17+
- label: 'ospp-2024'
18+
sync: true # remove label if match failed, default: false (pull_request/issue only)
19+
matcher:
20+
# Matcher will match on any 8 matchers
21+
baseBranch: '^ospp-2024/.*'

.github/workflows/labeler.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,20 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- uses: actions/labeler@v5
13-
with:
14-
repo-token: ${{ secrets.GITHUB_TOKEN }}
15-
configuration-path: '.github/labeler-action.yml'
16-
sync-labels: true
17-
- name: Check Labels
18-
id: labeler
19-
uses: jimschubert/labeler-action@v2
12+
# - uses: actions/labeler@v5
13+
# with:
14+
# repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
# configuration-path: '.github/labeler-action.yml'
16+
# sync-labels: true
17+
- uses: fuxingloh/multi-labeler@v4 # v4
2018
with:
21-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
19+
github-token: ${{ secrets.GITHUB_TOKEN }} # optional, default to '${{ github.token }}'
20+
config-path: .github/multi-labeler.yml # optional, default to '.github/labeler.yml'
21+
# - name: Check Labels
22+
# id: labeler
23+
# uses: jimschubert/labeler-action@v2
24+
# with:
25+
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2226
# - name: Apply labels based on PR title
2327
# uses: TimonVS/pr-labeler-action@v5
2428
# with:

0 commit comments

Comments
 (0)