Ver código fonte

Add GitHub issue forms (#3095)

Kasper 3 anos atrás
pai
commit
67951fa0d5

+ 0 - 72
.github/ISSUE_TEMPLATE/bug_report.md

@@ -1,72 +0,0 @@
----
-name: Bug report
-about: Create a report to help us improve Tauri
-title: ''
-labels: 'type: bug'
-assignees: ''
-
----
-
-<!-- BEFORE YOU FILE A NEW ISSUE-->
-<!--
-
-0. Please search open issues before duplicating a new one.
-1. Make sure you are using the latest version of everything including:
-  - rustc
-  - ALL relevant Tauri Libs
-2. You must attach the results of cargo tauri info or yarn tauri info to your issue.
-3. Make sure it is an issue with Tauri, and not something to do with your side of the stack.
-4. Consider starting a discussion. Speaking of which, have you looked there? Maybe your question has been answered.
-5. Remember to follow our community guidelines and be friendly.
-6. Is this an issue or a feature request? If the latter, please use the other template.
-
--->
-
-### **Describe the bug**
-A clear and concise description of what the bug is.
-
-### **To Reproduce**
-Steps to reproduce the behavior:
-1. Go to '...'
-2. Click on '....'
-3. Scroll down to '....'
-4. See error
-
-### **Expected behavior**
-A clear and concise description of what you expected to happen.
-
-### **Screenshots**
-If applicable, add screenshots to help explain your problem.
-
-### **Platform and Versions (required):**
-<!-- Use `yarn tauri info` or `cargo tauri info` command to get this information, and paste it here: -->
-```
-Operating System
-
-Node.js environment
-Node.js
-@tauri-apps/cli
-@tauri-apps/api
-
-Global packages
-npm
-yarn
-
-Rust environment
-rustc
-cargo
-
-App directory structure
-
-
-App
-tauri.rs
-build-type
-CSP
-```
-
-### **Additional context**
-Add any other context about the problem here.
-
-### **Stack Trace**
-<!-- add if applicable -->

+ 60 - 0
.github/ISSUE_TEMPLATE/bug_report.yml

@@ -0,0 +1,60 @@
+name: 🐞 Bug Report
+title: '[bug] '
+description: Report a bug
+labels: 'type: bug'
+
+body:
+  - type: markdown
+    attributes:
+      value: |
+        ## First of all
+        1. Please search for [existing issues](https://github.com/tauri-apps/tauri/issues?q=is%3Aissue) about this problem first.
+        2. Make sure `rustc` and all relevant Tauri packages are up to date.
+        3. Make sure it's an issue with Tauri and not something else you are using.
+        4. Remember to follow our community guidelines and be friendly.
+
+  - type: textarea
+    id: description
+    attributes:
+      label: Describe the bug
+      description: A clear description of what the bug is. Include screenshots if applicable.
+      placeholder: Bug description
+    validations:
+      required: true
+
+  - type: textarea
+    id: reproduction
+    attributes:
+      label: Reproduction
+      description: Steps to reproduce the behavior.
+      placeholder: |
+        1. Go to ...
+        2. Click on ...
+        3. See error
+
+  - type: textarea
+    id: expected-behavior
+    attributes:
+      label: Expected behavior
+      description: A clear description of what you expected to happen.
+
+  - type: textarea
+    id: info
+    attributes:
+      label: Platform and versions
+      description: "Output of `npm run tauri info` or `cargo tauri info`"
+      render: shell
+    validations:
+      required: true
+
+  - type: textarea
+    id: logs
+    attributes:
+      label: Stack trace
+      render: shell
+  
+  - type: textarea
+    id: context
+    attributes:
+      label: Additional context
+      description: Add any other context about the problem here.

+ 4 - 0
.github/ISSUE_TEMPLATE/config.yml

@@ -0,0 +1,4 @@
+contact_links:
+  - name: 💬 Discord Chat
+    url: https://discord.com/invite/tauri
+    about: Ask questions and talk to other Tauri users and the maintainers

+ 0 - 10
.github/ISSUE_TEMPLATE/docs-report.md

@@ -1,10 +0,0 @@
----
-name: Docs report
-about: Create a report to help us improve Tauri docs
-title: "[docs]"
-labels: 'type: documentation'
-assignees: ''
-
----
-
-

+ 8 - 0
.github/ISSUE_TEMPLATE/docs_report.md

@@ -0,0 +1,8 @@
+---
+name: 📚 Docs Report
+about: Create a report to help us improve the docs
+title: "[docs] "
+labels: 'type: documentation'
+assignees: ''
+
+---

+ 0 - 20
.github/ISSUE_TEMPLATE/feature_request.md

@@ -1,20 +0,0 @@
----
-name: Feature request
-about: Suggest an idea for Tauri
-title: ''
-labels: 'type: feature request'
-assignees: ''
-
----
-
-**Is your feature request related to a problem? Please describe.**
-A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
-
-**Describe the solution you'd like**
-A clear and concise description of what you want 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.

+ 35 - 0
.github/ISSUE_TEMPLATE/feature_request.yml

@@ -0,0 +1,35 @@
+name: 💡 Feature Request
+title: '[feat] '
+description: Suggest an idea
+labels: 'type: feature request'
+
+body:
+  - type: textarea
+    id: problem
+    attributes:
+      label: Describe the problem
+      description: A clear description of the problem this feature would solve
+      placeholder: "I'm always frustrated when..."
+    validations:
+      required: true
+
+  - type: textarea
+    id: solution
+    attributes:
+      label: "Describe the solution you'd like"
+      description: A clear description of what change you would like
+      placeholder: "I would like to..."
+    validations:
+      required: true
+
+  - type: textarea
+    id: alternatives
+    attributes:
+      label: Alternatives considered
+      description: "Any alternative solutions you've considered"
+  
+  - type: textarea
+    id: context
+    attributes:
+      label: Additional context
+      description: Add any other context about the problem here.