Commit dedb475ff47cb09ce169a959f6214fa1483d26e3

Michael Schmidt 2019-03-14T13:49:47

Added issue templates (#1805) This adds issue templates for the prism project after #1802.

diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000..2c6234d
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,23 @@
+---
+name: Bug report
+about: Create a report to help us improve.
+title: ''
+labels: ''
+assignees: ''
+
+---
+
+**Information:**
+- Prism version: [e.g. 1.14, latest from the download page, etc.]
+- Environment: [e.g. Browser, Node, Webpack]
+
+Does the latest version of Prism from the [download page](https://prismjs.com/download.html) also have this issue?
+
+If you're using Prism with Node or Webpack, please also see the [usage section](https://prismjs.com/index.html#basic-usage).
+
+**Description**
+A clear and concise description of what the bug is and how to reproduce it.
+If applicable, add screenshots to help explain your problem.
+
+**Example**
+An example which reproduces the bug. This can be a link to a website, a [JSFiddle](https://jsfiddle.net/), an attached example project, etc.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 0000000..a077152
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,17 @@
+---
+name: Feature request
+about: Suggest a new feature for Prism.
+title: ''
+labels: enhancement
+assignees: ''
+
+---
+
+**Motivation**
+Please explain the problem you're having/why you propose this feature. Ex. I'm always frustrated when [...]
+
+**Description**
+A clear and concise description of what you want to happen.
+
+**Alternatives**
+A clear and concise description of any alternative solutions or features you've considered, if applicable.
diff --git a/.github/ISSUE_TEMPLATE/highlighting-bug-report.md b/.github/ISSUE_TEMPLATE/highlighting-bug-report.md
new file mode 100644
index 0000000..dae4b0d
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/highlighting-bug-report.md
@@ -0,0 +1,29 @@
+---
+name: Highlighting bug report
+about: Does Prism highlight parts of your code incorrectly or is a language feature
+  not supported?
+title: ''
+labels: language-definitions
+assignees: ''
+
+---
+
+**Information**
+- Language: [e.g. C++, JavaScript, YAML, etc.]
+- Plugins: [what plugin you are using]
+
+Does the problem still occur in the latest version of Prism? You can check using the [test page](https://prismjs.com/test.html) or get the latest version at the [download page](https://prismjs.com/download.html).
+
+**Description**
+A clear and concise description of what is being highlighted incorrectly and how it should be highlighted instead. Add screenshots to illustrate the problem.
+
+**Code snippet**
+
+<details>
+<summary>The code being highlighted incorrectly.</summary>
+
+```
+Your code goes here
+```
+
+</details>
diff --git a/.github/ISSUE_TEMPLATE/new-language-request.md b/.github/ISSUE_TEMPLATE/new-language-request.md
new file mode 100644
index 0000000..5f1760b
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/new-language-request.md
@@ -0,0 +1,14 @@
+---
+name: New language request
+about: Suggest a new language Prism should support.
+title: ''
+labels: language-definitions, new langauge
+assignees: ''
+
+---
+
+**Language**
+A short description of the language.
+
+**Additional resources**
+E.g. The official website, documentation or language specification.