Skip to content

Commit

Permalink
Add issue auto label
Browse files Browse the repository at this point in the history
Signed-off-by: Renato Foot <[email protected]>
  • Loading branch information
Renato Foot committed Apr 12, 2022
1 parent 87edf62 commit 76fd4f6
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 46 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Report a problem/bug
description: Any issues that you have found while using the server
labels: ["Status: Pending Test", "Type: Bug"]
labels: ["Type: Bug"]
body:
- type: markdown
attributes:
Expand All @@ -27,9 +27,9 @@ body:
description: Where is the problem?
options:
- label: Datapack
- label: Docker
- label: Map
- label: Source
- label: Map
- label: Other
validations:
required: true

Expand Down
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/enhancement.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
name: Report a missing content
description: Any thing that is missing
labels: ["Status: Pending Test", "Type: Missing Content"]
name: Request
description: Any request
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this issue!
- type: dropdown
id: priority
attributes:
label: Priority
description: How critical is this?
options:
- Missing Content
- Enhancement
validations:
required: true

- type: checkboxes
id: area
attributes:
label: Area
description: Where is the problem?
options:
- label: Datapack
- label: Docker
- label: Map
- label: Source
- label: Map
- label: Other
validations:
required: true

Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Issue - Labeling
on:
workflow_dispatch:
issues:
types: ['opened']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: Renato66/auto-label@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ignore-comments: true
labels-synonyms: '{
"Priority: Low":["Low"],
"Priority: Medium":["Medium"],
"Priority: High":["High"],
"Priority: Critical":["Critical"],
"Area: Datapack":["[X] Datapack"],
"Area: Source":["[X] Source"],
"Area: Map":["[X] Map"],
"Type: Enhancement":["Enhancement"],
"Type: Missing Content":["Missing Content"]
}'
default-labels: '["Status: Pending Test"]'

0 comments on commit 76fd4f6

Please sign in to comment.