Skip to content

Commit 132ab9d

Browse files
committed
feat: update
1 parent fe38d79 commit 132ab9d

3 files changed

Lines changed: 38 additions & 38 deletions

File tree

.github/labeler-action.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
1-
# enable labeler on issues, prs, or both.
2-
enable:
3-
issues: false
4-
prs: true
1+
bug:
2+
- title: 'fix*'
53

6-
# Labels is an object where:
7-
# - keys are labels
8-
# - values are objects of { include: [ pattern ], exclude: [ pattern ] }
9-
# - pattern must be a valid regex, and is applied globally to
10-
# title + description of issues and/or prs (see enabled config above)
11-
# - 'include' patterns will associate a label if any of these patterns match
12-
# - 'exclude' patterns will ignore this label if any of these patterns match
13-
labels:
14-
'bug':
15-
include:
16-
- '\bbug[s]?\b'
17-
- '\bfix\b'
18-
exclude: []
19-
'enhancement':
20-
include:
21-
- '\bfeat\b'
22-
- '\bfeature\b'
23-
exclude: []
4+
enhancement:
5+
- title: 'feat*'
6+
7+
ospp-2024:
8+
- base-branch: ['ospp-2024/*']
9+
10+
document:
11+
- changed-files:
12+
- any-glob-to-any-file: ['docs/*', '**/*.md']

.github/labeler.yml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
bug:
2-
- title: 'fix*'
1+
# enable labeler on issues, prs, or both.
2+
enable:
3+
issues: false
4+
prs: true
35

4-
enhancement:
5-
- title: 'feat*'
6-
7-
ospp-2024:
8-
- base-branch: ['ospp-2024/*']
9-
10-
document:
11-
- changed-files:
12-
- any-glob-to-any-file: ['docs/*', '**/*.md']
6+
# Labels is an object where:
7+
# - keys are labels
8+
# - values are objects of { include: [ pattern ], exclude: [ pattern ] }
9+
# - pattern must be a valid regex, and is applied globally to
10+
# title + description of issues and/or prs (see enabled config above)
11+
# - 'include' patterns will associate a label if any of these patterns match
12+
# - 'exclude' patterns will ignore this label if any of these patterns match
13+
labels:
14+
'bug':
15+
include:
16+
- '\bbug[s]?\b'
17+
- '\bfix\b'
18+
exclude: []
19+
'enhancement':
20+
include:
21+
- '\bfeat\b'
22+
- '\bfeature\b'
23+
exclude: []

.github/workflows/labeler.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ 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-
# sync-labels: true
12+
- uses: actions/labeler@v5
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
configuration-path: '.github/labeler-action.yml'
16+
sync-labels: true
1617
- name: Check Labels
1718
id: labeler
1819
uses: jimschubert/labeler-action@v2
1920
with:
2021
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
21-
config-path: '.github/labeler-action.yml'
2222
# - name: Apply labels based on PR title
2323
# uses: TimonVS/pr-labeler-action@v5
2424
# with:

0 commit comments

Comments
 (0)