Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Improve the bug report template

Patryk Zawadzkie7e84ffd8efc
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
deleted file mode 100644
index 0641244bdb..0000000000
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ /dev/null
@@ -1,36 +0,0 @@
----
-name: Bug report
-about: Create a report to help us improve
-title: ''
-labels: bug
-assignees: ''
-
----
-
-### What I'm trying to achieve
-…
-
-### Steps to reproduce the problem
-<!-- Adding logs from the console, as well as query/response help us fix the bug faster -->
-1.
-2.
-
-### What I expected to happen
-…
-
-### Screenshots and logs
-<!-- If applicable, add screenshots to help explain your problem. -->
-
-**System information**
-<!-- Provide the version of Saleor or whether you're using it from the `main` branch. If using Saleor Dashboard or Storefront, provide their versions too. -->
-Saleor version:
-- [ ] dev (current main)
-- [ ] 3.0
-- [ ] 2.11
-- [ ] 2.10
-
-Operating system:
-- [ ] Windows
-- [ ] Linux
-- [ ] MacOS
-- [ ] Other
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml
new file mode 100644
index 0000000000..26b8cf23d8
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.yaml
@@ -0,0 +1,50 @@
+name: Bug report
+description: Create a bug report
+title: ""
+labels: ["bug", "triage"]
+assignees: []
+
+body:
+ - type: textarea
+ id: goal
+ attributes:
+ label: "What were you trying to do?"
+ description: Tell us what you were trying to achieve when you encountered the problem.
+ validations:
+ required: true
+ - type: textarea
+ id: steps
+ attributes:
+ label: "How can we reproduce the problem?"
+ description: Tell us how to reproduce the problem starting with an empty database.
+ placeholder: |
+ 1. Create a product with two attributes…
+ 2. …
+ 3. Run `…`
+ 4. See that it failed with…
+ validations:
+ required: true
+ - type: textarea
+ id: expected-behavior
+ attributes:
+ label: "What did you expect to happen?"
+ description: Tell us why you think the behavior described earlier is incorrect.
+ validations:
+ required: true
+ - type: textarea
+ id: steps
+ attributes:
+ label: "Logs"
+ description: Include any logs from the console, screenshots, and any API queries or responses that could help us understand the problem.
+ validations:
+ required: false
+ - type: textarea
+ id: steps
+ attributes:
+ label: "Environment"
+ description: Provide some information about your environment.
+ value: |
+ Saleor version: …
+ OS and version: …
+ validations:
+ required: true