Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit bec6136

Browse files
author
Andrei Hava
committed
add issue labeler
1 parent 8fb3581 commit bec6136

3 files changed

Lines changed: 47 additions & 1 deletion

File tree

.github/advanced-issue-labeler.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
policy:
2+
- template: [bug_report.yml]
3+
section:
4+
- id: [minecraftVersion]
5+
label:
6+
- name: 1.20.1
7+
keys: [1.20.1]
8+
9+
- id: [modLoader]
10+
label:
11+
- name: NeoForge
12+
keys: [NeoForge]
13+
- name: Forge
14+
keys: [Forge]
15+
- name: Fabric
16+
keys: [Fabric]

.github/workflows/label.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Label Issues
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
jobs:
9+
label:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
issues: write
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Parse issue form
20+
uses: stefanbuck/github-issue-parser@v3
21+
with:
22+
template-path: .github/ISSUE_TEMPLATE/bug_report.yml
23+
id: issue-parser
24+
25+
- name: Label issue
26+
uses: redhat-plumbers-in-action/advanced-issue-labeler@v3
27+
with:
28+
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
29+
token: ${{ secrets.GITHUB_TOKEN }}
30+

.idea/workspace.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)