Skip to content

Commit

Permalink
(chore) fancy issue templates (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtm-nayan authored Apr 9, 2022
1 parent 7d94e23 commit d745f5d
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 65 deletions.
41 changes: 0 additions & 41 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

67 changes: 67 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: "Bug report"
description: "Create a report to help us improve"
labels: ["bug"]

body:
- type: markdown
attributes:
value: |
Before you submit a bug, please make sure that:
- you have searched and found no existing open issue with the problem at hand
- you don't have `"files.associations": {"*.svelte": "html" }` inside your VSCode settings (if you can't remember ever doing that, you don't have that)
- you are using Svelte for VS Code (NOT the old "Svelte" extension by James Birtles) and have disabled all other Svelte-related extensions to reproduce the bug
- if it's a preprocessor related bug like "can't use typescript", did you setup `svelte-preprocess` and/or `svelte.config.js`? See the docs for more info.
- type: textarea
id: bug-description
attributes:
label: Describe the bug
description: "Bug description"
placeholder: "A clear and concise description of what the bug is."
validations:
required: true

- type: textarea
id: reproduction
attributes:
label: Reproduction
description: Steps to reproduce
placeholder: "For example, a code snippet that is treated in a way you don't expect."
validations:
required: true

- type: textarea
id: expectation
attributes:
label: Expected behaviour
placeholder: "A clear and concise description of what you expected to happen."
validations:
required: true

- type: textarea
id: system-info
attributes:
label: System Info
description: "Your operating system, editor, extension version etc."
value: |
- OS: [e.g. Windows]
- IDE: [e.g. VSCode, Atom]
validations:
required: true

- type: dropdown
id: package
attributes:
label: Which package is the issue about?
options:
- Svelte for VS Code
- language-server
- svelte2tsx
- svelte-check
validations:
required: true

- type: textarea
id: additional-context
attributes:
label: Additional Information, eg. Screenshots
24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Feature request"
description: "Suggest an idea for this project"

body:
- type: textarea
id: description
attributes:
label: Description
description: "Is your feature request related to a problem? Please describe."
placeholder: "I'm always frustrated when..."
validations:
required: true

- type: textarea
id: proposed-solution
attributes:
label: Proposed solution
description: "Describe the solution you'd like"
placeholder: "A clear and concised description of what you want to happen."
validations:
required: true

- type: textarea
id: alternatives
attributes:
label: Alternatives
description: "Describe alternatives you've considered"

- type: textarea
id: additional-context
attributes:
label: Additional Information, eg. Screenshots

0 comments on commit d745f5d

Please sign in to comment.