Skip to content

Commit

Permalink
chore: improve issue template
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Aug 11, 2023
1 parent 3f75432 commit fef427f
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 64 deletions.
133 changes: 92 additions & 41 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
name: Bug report
description: File a bug report
name: 🐛 Bug report
description: Run into a bug? File a report and get the help you need!
labels: [bug, pending triage]
body:
- type: markdown
attributes:
value: |
Thank you for taking the time to file this bug report.
## 👀 Tell us about the bug
A clear and concise description of what the bug is. If applicable, add screenshots to help explain your problem.
- type: textarea
attributes:
label: Problem
placeholder: |
What did you do and what happened?
Do you have an error stack trace?
validations:
required: true

- type: textarea
attributes:
label: Expected behavior
placeholder: |
What did you expect to happen?
validations:
required: true

- type: textarea
attributes:
Expand All @@ -24,63 +43,95 @@ body:
validations:
required: true

- type: input
- type: markdown
attributes:
label: Minimal reproduction link
description: |
> ⚠️ A minimal reproduction is required to demonstrate the bug, and for us to debug it. If not provided, the issue will be closed.
value: |
## 📋 Minimal reproduction
> ⚠️ If a minimal reproduction is not provided, **the issue will be closed.**
The minimal reproduction proves a bug exists in this project, streamlines the conversation, and allows others to debug it for you right away.
#### Requirements
1. Create the reproduction on [StackBlitz](https://stackblitz.com) or a new GitHub repository so it can be opened in the browser.
2. Keep the reproduction small.
Delete _everything_ you don't need. Narrowing the scope is the first step of debugging so doing this will save us work.
The _smaller_ the reproduction, the _faster_ we can debug and resolve your issue.
Provide a link to a minimal reproduction repository so we can `git clone`, run `npm start`, and reproduce the bug right away.
3. No more than 10 files.
Delete irrelevant files (e.g. `LICENSE`, `.npmrc`, `.github`).
4. Set the `start` script in `package.json` to the command that demonstrates the bug.
Starter template: [fork this template on StackBlitz](https://stackblitz.com/edit/node-guv65j?file=webpack.config.js&view=editor)
#### Requirements:
- No more than 10 files
Delete irrelevant files (e.g. `LICENSE`, `.npmrc`, `.github`). This is the first step of debugging so doing this will save us work.
👉 **Tip:** The _smaller_ the reproduction, the _faster_ we can debug and resolve your issue
- type: input
attributes:
label: URL
placeholder: https://stackblitz.com/edit/...
validations:
required: true

- type: markdown
attributes:
value: |
> **🙋 Experiencing a challenging bug and need expert assistance?**
>
> Get personalized help through my [_Priority Support_ service](https://github.com/sponsors/privatenumber). From minimal reproduction creation to debugging, I'm here to assist you!
- Set the `start` script in `package.json` to the command that shows the bug
- type: markdown
attributes:
value: "## 🌍 Environment"

placeholder: Minimal reproduction URL
- type: input
attributes:
label: Version
placeholder: v0.0.0
validations:
required: true

- type: textarea
- type: input
attributes:
label: Environment
description: |
Run and paste the output of:
```
npx envinfo --system --npmPackages webpack,esbuild-loader --binaries
```
This information is used to for reproduction and debugging.
placeholder: |
System:
OS:
CPU:
Shell:
Binaries:
Node:
npm:
npmPackages:
webpack:
esbuild-loader:
render: shell
label: Node.js version
placeholder: v0.0.0
validations:
required: true

- type: dropdown
id: package-manager
attributes:
label: Package manager
options:
- npm
- yarn
- pnpm
- bun
- N/A
validations:
required: true

- type: dropdown
attributes:
label: Operating system
options:
- macOS
- Windows
- Linux
validations:
required: true

- type: markdown
attributes:
value: "## 🛠️ Can you contribute a fix?"

- type: checkboxes
attributes:
label: Can you contribute a fix?
description: We would love it if you can open a pull request to fix this bug!
label: It would be amazing if you can contribute to the project!
options:
- label: I’m interested in opening a pull request for this issue.
- label: I plan to open a pull request for this issue.

- type: markdown
attributes:
value: |
#### Seeking priority support?
Escalate this issue by becoming a [sponsor](https://github.com/sponsors/privatenumber)! As a sponsor, your concern will receive prompt attention, ensuring faster and more efficient resolution.
## 🚀 Need immediate attention?
Escalate this issue by becoming a [_Priority Patron_ sponsor](https://github.com/sponsors/privatenumber)! As a _Priority Patron_, your concern will receive prompt attention, ensuring faster and more efficient resolution.
[👉 Get priority support now!](https://github.com/sponsors/privatenumber)
[👉 Become a _Priority Patron_ now!](https://github.com/sponsors/privatenumber)
41 changes: 21 additions & 20 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
name: Feature request
description: Suggest an idea for this project
labels: [feature request, pending triage]
name: 🌟 Feature request
description: Have a great idea for this project? Tell us more!
labels: [enhancement, pending triage]
body:
- type: markdown
attributes:
value: |
Thank you for taking the time to file this feature request.
value: "## 👀 Tell us about your idea"

- type: textarea
attributes:
label: Feature request
description: A description of the feature you would like.
description: A clear and concise description of the feature you would like.
placeholder: |
When using this project, I would love to be able to...
validations:
required: true

- type: textarea

attributes:
label: Why?
label: Motivations
description: |
Describe the problem you’re tackling with this feature request.
placeholder: |
<!--
What’s the motivation behind this issue?
eg. “I’m frustrated when...”
-->
How did you come across this idea?
validations:
required: true

Expand All @@ -35,11 +31,9 @@ body:
description: |
Have you considered alternative solutions? Is there a workaround?
placeholder: |
<!--
Do you have alternative proposals?
Do you have alternative proposals?
Do you have a workaround?
-->
Are there workarounds?
- type: textarea
attributes:
Expand All @@ -50,7 +44,14 @@ body:
- type: markdown
attributes:
value: |
#### Seeking priority support?
Escalate this issue by becoming a [sponsor](https://github.com/sponsors/privatenumber)! As a sponsor, your concern will receive prompt attention, ensuring faster and more efficient resolution.
> **🙋 Experiencing a challenging problem and need expert assistance?**
>
> Get personalized help through my [_Priority Support_ service](https://github.com/sponsors/privatenumber). From debugging to implementation, I'm here to assist you!
- type: markdown
attributes:
value: |
## 🚀 Need immediate attention?
Escalate this issue by becoming a [_Priority Patron_ sponsor](https://github.com/sponsors/privatenumber)! As a _Priority Patron_, your concern will receive prompt attention, ensuring faster and more efficient resolution.
[👉 Get priority support now!](https://github.com/sponsors/privatenumber)
[👉 Become a _Priority Patron_ now!](https://github.com/sponsors/privatenumber)
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
blank_issues_enabled: false
contact_links:
- name: Help / Questions / Discussions
- name: 💬 Help / Questions / Discussions
url: https://github.com/esbuild-kit/esbuild-loader/discussions
about: Use GitHub Discussions for anything else

- name: Priority support ⭐️
- name: 🚀 Priority Support
url: https://github.com/sponsors/privatenumber/
about: Join our community of sponsors and enjoy priority attention for all your questions and concerns
about: Need help? Get prioritized help for all your questions and issues

0 comments on commit fef427f

Please sign in to comment.