From e17f3aac5ede417e64973d10717db73cc8ffbecf Mon Sep 17 00:00:00 2001
From: Mysterious_Dev <mysteriousdevs@gmail.com>
Date: Thu, 27 Oct 2022 15:38:22 +0200
Subject: [PATCH] Migrate issue templates to forms

---
 .github/ISSUE_TEMPLATE/issue.md        | 15 ---------
 .github/ISSUE_TEMPLATE/issue.yaml      | 43 ++++++++++++++++++++++++++
 .github/ISSUE_TEMPLATE/suggestion.md   |  8 -----
 .github/ISSUE_TEMPLATE/suggestion.yaml | 14 +++++++++
 4 files changed, 57 insertions(+), 23 deletions(-)
 delete mode 100644 .github/ISSUE_TEMPLATE/issue.md
 create mode 100644 .github/ISSUE_TEMPLATE/issue.yaml
 delete mode 100644 .github/ISSUE_TEMPLATE/suggestion.md
 create mode 100644 .github/ISSUE_TEMPLATE/suggestion.yaml

diff --git a/.github/ISSUE_TEMPLATE/issue.md b/.github/ISSUE_TEMPLATE/issue.md
deleted file mode 100644
index 5df5d923..00000000
--- a/.github/ISSUE_TEMPLATE/issue.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-name: Bug / Issue
-about: Use this template to report an issue that occurs when using Blockbench
-title: "[Issue] Issue summary"
----
-
-- Before you report an issue, check if if has already been reported.
-- Also check if you are using the latest version of Blockbench.
-- If applicable, go to Help > Developer > Open Dev Tools. Switch to the Console tab. If there are any (red) error messages, please attach a screenshot of them.
-
-Please make sure to provide the following information:
-- Detailed description of your issue
-- Model format in which the issue occurs
-- Blockbench variant (Website / PWA / Program)
-- Operating System
diff --git a/.github/ISSUE_TEMPLATE/issue.yaml b/.github/ISSUE_TEMPLATE/issue.yaml
new file mode 100644
index 00000000..2c56fd6b
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/issue.yaml
@@ -0,0 +1,43 @@
+name: Bug / Issue
+description: Use this form to report an issue that occurs when using Blockbench
+title: "[Issue] Issue summary"
+body:
+- type: markdown
+  attributes:
+    value: |
+      - Before you report an issue, check if if has already been reported.
+      - Also check if you are using the latest version of Blockbench.
+      - If applicable, go to Help > Developer > Open Dev Tools. Switch to the Console tab. If there are any (red) error messages, please attach a screenshot of them.
+- type: markdown
+  attributes:
+    value: |
+      Please make sure to provide the following information:
+- type: textarea
+  id: details
+  attributes:
+    label: Detailed description of your issue
+  validations:
+    required: true
+- type: input
+  id: format
+  attributes:
+    label: Model format in which the issue occurs
+  validations:
+    required: true
+- type: dropdown
+  id: variant
+  attributes:
+    label: Blockbench variant
+    multiple: true
+    options:
+      - Website
+      - PWA
+      - Program
+  validations:
+    required: true
+- type: input
+  id: os
+  attributes:
+    label: Operating System
+  validations:
+    required: true
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/suggestion.md b/.github/ISSUE_TEMPLATE/suggestion.md
deleted file mode 100644
index c6eb2b4e..00000000
--- a/.github/ISSUE_TEMPLATE/suggestion.md
+++ /dev/null
@@ -1,8 +0,0 @@
----
-name: Suggestion
-about: Use this template to suggest features or improvements for Blockbench
-title: "[Suggestion] Suggestion summary"
----
-
-- Please provide a detailed description of your suggestion.
-- Before submissing a suggestion, please check if it has already been suggested.
diff --git a/.github/ISSUE_TEMPLATE/suggestion.yaml b/.github/ISSUE_TEMPLATE/suggestion.yaml
new file mode 100644
index 00000000..bfa87c74
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/suggestion.yaml
@@ -0,0 +1,14 @@
+name: Suggestion
+description: Use this form to suggest features or improvements for Blockbench
+title: "[Suggestion] Suggestion summary"
+body:
+- type: markdown
+  attributes:
+    value: |
+      **Before submissing a suggestion, please check if it has already been suggested.**
+- type: textarea
+  id: details
+  attributes:
+    label: Detailed description of your suggestion
+  validations:
+    required: true
\ No newline at end of file