Skip to content

Commit 7fa0c3a

Browse files
committed
test: new labeler
1 parent c72595f commit 7fa0c3a

File tree

2 files changed

+33
-24
lines changed

2 files changed

+33
-24
lines changed

.github/workflows/add-label.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Pull Request Labeler
22
on:
33
issues:
4-
types: [opened, edited]
4+
types: [opened]
55
branches:
66
- master
77
pull_request:
8-
types: [opened, edited]
8+
types: [opened]
99
branches:
1010
- master
1111

@@ -15,14 +15,15 @@ permissions:
1515
pull-requests: write
1616

1717
jobs:
18-
triage:
18+
build:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: github/issue-labeler@v3.4
21+
- name: Checkout your code
22+
uses: actions/checkout@v3
23+
- uses: srvaroa/labeler@master
2224
with:
23-
configuration-path: .github/workflows/labeler/labeler-config.yml
24-
enable-versioned-regex: 0
25-
sync-labels: 0
26-
include-title: 1
27-
include-body: 0
28-
repo-token: ${{ github.token }}
25+
config_path: .github/workflows/labeler/labeler-config.yml
26+
use_local_config: false
27+
fail_on_error: true
28+
env:
29+
GITHUB_TOKEN: "${{ github.token }}"
Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
1-
bug:
2-
- 'bug'
1+
version: 1
32

4-
feature:
5-
- 'feature'
3+
labels:
4+
- label: 'bug'
5+
title: '(\[|)bug(?=(:|]))'
66

7-
triage:
8-
- '/.*/'
7+
- label: 'feature'
8+
title: '(\[|)(feature|feat)(?=(:|]))'
99

10-
fabric:
11-
- '\b([Ff][Aa][Bb][Rr][Ii][Cc])\b'
10+
- label: 'forge'
11+
title: '(\[|)forge(?=(:|]))'
1212

13-
forge:
14-
- '\b([Ff][Oo][Rr][Gg][Ee])\b'
13+
- label: 'neoforge'
14+
title: '(\[|)neoforge(?=(:|]))'
1515

16-
neoforge:
17-
- '\b([Nn][Ee][Oo][Ff][Oo][Rr][Gg][Ee])\b'
16+
- label: 'fabric'
17+
title: '(\[|)fabric(?=(:|]))'
1818

19-
"1.20":
20-
- '1\.20(\.\d+|\.x)?'
19+
- label: '1.20'
20+
title: '(\[|)1\.20(\.\d+|\.x)?(?=(:|]|))'
21+
22+
- label: 'wip'
23+
type: "pull_request"
24+
mergeable: false
25+
26+
- label: 'triage'
27+
title: '.*'
28+
mergeable: false

0 commit comments

Comments
 (0)