From e1ae7240f4cf889f22ec3a718fb7b7022dd7dd2c Mon Sep 17 00:00:00 2001
From: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
Date: Mon, 28 Jun 2021 23:16:06 +0200
Subject: [PATCH] Revert "chore: add GitHub issue forms"

This reverts commit 452d466481c491d04c17be5c84f427e22d0a4844.
---
 .github/ISSUE_TEMPLATE/.editorconfig      |   2 -
 .github/ISSUE_TEMPLATE/bug_report.md      | 124 ++++++----------------
 .github/ISSUE_TEMPLATE/config.yml         |   2 +-
 .github/ISSUE_TEMPLATE/feature_request.md |  43 +++-----
 4 files changed, 48 insertions(+), 123 deletions(-)
 delete mode 100644 .github/ISSUE_TEMPLATE/.editorconfig

diff --git a/.github/ISSUE_TEMPLATE/.editorconfig b/.github/ISSUE_TEMPLATE/.editorconfig
deleted file mode 100644
index d2204156..00000000
--- a/.github/ISSUE_TEMPLATE/.editorconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-[*.md]
-indent_size = 2
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index 0d229830..a4171cba 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -1,100 +1,38 @@
+---
 name: 🐛 Bug report
 about: Report a bug to help us improve Dex
-body:
-- type: markdown
-  attributes:
-    value: |
-      Thank you for submitting a bug report!
+---
+<!--
+Thank you for sending a bug report! Here are some tips:
 
-      Please fill out the template below to make it easier to debug your problem.
+1. Please fill out the template below to make it easier to debug your problem.
+2. If you are not sure if it is a bug or not, you can ask in the CNCF slack channel `#dexidp`.
+-->
 
-      If you are not sure if it is a bug or not, you can contact us via the available [support channels](https://github.com/dexidp/dex/issues/new/choose).
-- type: checkboxes
-  attributes:
-    label: Preflight Checklist
-    description: Please ensure you've completed all of the following.
-    options:
-      - label: I agree to follow the [Code of Conduct](https://github.com/dexidp/dex/blob/master/.github/CODE_OF_CONDUCT.md) that this project adheres to.
-        required: true
-      - label: I have searched the [issue tracker](https://www.github.com/dexidp/dex/issues) for an issue that matches the one I want to file, without success.
-        required: true
-      - label: I am not looking for support or already pursued the available [support channels](https://github.com/dexidp/dex/issues/new/choose) without success.
-        required: true
-- type: input
-  attributes:
-    label: Version
-    description: What version of Dex are you using?
-    placeholder: 2.28.1
-  validations:
-    required: true
-- type: dropdown
-  attributes:
-    label: Storage Type
-    options:
-      - etcd
-      - Kubernetes
-      - In-memory
-      - Postgres
-      - MySQL
-  validations:
-    required: true
-- type: dropdown
-  attributes:
-    label: Installation Type
-    description: Official container image, Helm chart, etc.
-    options:
-      - Binary
-      - Official container image
-      - Official Helm chart
-      - Custom container image
-      - Custom Helm chart
-      - Other (specify below)
-    multiple: true
-  validations:
-    required: true
-- type: textarea
-  attributes:
-    label: Expected Behavior
-    description: A clear and concise description of what you expected to happen.
-  validations:
-    required: true
-- type: textarea
-  attributes:
-    label: Actual Behavior
-    description: A clear description of what actually happens.
-  validations:
-    required: true
-- type: textarea
-  attributes:
-    label: Steps To Reproduce
-    description: Steps to reproduce the behavior if it is not self-explanatory.
-    placeholder: |
-      1. In this environment...
-      2. With this config...
-      3. Run '...'
-      4. See error...
-- type: textarea
-  attributes:
-    label: Additional Information
-    description: Links? References? Anything that will give us more context about the issue that you are encountering!
-- type: textarea
-  attributes:
-    label: Configuration
-    description: Contents of your configuration file (if relevant).
-    render: yaml
-    placeholder: |
-      issuer: http://127.0.0.1:5556/dex
+#### Expected behavior (what you expected to happen)
 
-      storage:
-        # ...
+#### Actual behavior (what actually happened)
 
-      connectors:
-        # ...
+#### Steps to reproduce
 
-      staticClients:
-        # ...
-- type: textarea
-  attributes:
-    label: Logs
-    description: Dex application logs (if relevant).
-    render: shell
+1. ...
+2. ...
+3. ...
+
+#### Environment
+
+- Dex version:
+- Storage type:
+- Installation type (official docker image, helm chart, etc.):
+
+#### Anything else we should know?
+
+#### Additional information for debugging (if necessary)
+
+<details><summary>Configuration</summary><br><pre>
+
+</pre></details>
+
+<details><summary>Logs</summary><br><pre>
+
+</pre></details>
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
index 4e78de20..02d15f70 100644
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -2,7 +2,7 @@ blank_issues_enabled: false
 contact_links:
   - name: ❓ Ask a question
     url: https://github.com/dexidp/dex/discussions/new?category=q-a
-    about: Ask and discuss questions with other Dex community members
+    about:  Ask and discuss questions with other Dex community members
 
   - name: 📚 Documentation
     url: https://dexidp.io/docs/
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
index b2391dd2..c8f46454 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -1,31 +1,20 @@
+---
 name: 🚀 Feature request
 about: Suggest an idea for Dex
-body:
-- type: markdown
-  attributes:
-    value: |
-      Thank you for submitting a feature request!
+---
+<!--
+ Thank you for sending a feature request!
+ Please describe what you would like to change/add and why in detail by filling out the template below.
+ -->
 
-      Please describe what you would like to change/add and why in detail by filling out the template below.
+#### Is your feature request related to a problem?
+<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
 
-      If you are not sure if your request fits into Dex, you can contact us via the available [support channels](https://github.com/dexidp/dex/issues/new/choose).
-- type: textarea
-  attributes:
-    label: Problem Description
-    description: Please add a clear and concise description of the problem you are seeking to solve with this feature request.
-  validations:
-    required: true
-- type: textarea
-  attributes:
-    label: Proposed Solution
-    description: Describe the solution you'd like in a clear and concise manner.
-  validations:
-    required: true
-- type: textarea
-  attributes:
-    label: Alternatives Considered
-    description: A clear and concise description of any alternative solutions or features you've considered.
-- type: textarea
-  attributes:
-    label: Additional Information
-    description: Add any other context about the problem here.
+#### Describe the solution you'd like to see
+<!-- A clear and concise description of what would you like to happen. -->
+
+#### Describe alternatives you've considered
+<!-- A clear and concise description of any alternative solutions or features you've considered. -->
+
+#### Additional context
+<!-- Add any other context or screenshots about the feature request here. -->
-- 
GitLab