feat: improve issue templates and add discussion templates

This commit is contained in:
Ryuya 2025-07-12 15:32:49 -07:00
parent ad1e3b46f4
commit 8823af17f5
8 changed files with 278 additions and 93 deletions

72
.github/DISCUSSION_TEMPLATE/ideas.yml vendored Normal file
View File

@ -0,0 +1,72 @@
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Thanks for suggesting a new feature! Help us understand your proposal by providing detailed information.
- type: textarea
attributes:
label: Feature Description
description: Provide a clear and concise description of the feature you'd like
placeholder: I would like webpack to support...
validations:
required: true
- type: textarea
attributes:
label: Goals
description: What problems would this feature solve?
value: |
1.
2.
3.
validations:
required: true
- type: textarea
attributes:
label: Current Behavior
description: How does webpack currently handle this use case?
placeholder: Currently, webpack requires users to...
validations:
required: true
- type: textarea
attributes:
label: Proposed Solution
description: How should this feature work? Include API examples if applicable
placeholder: |
I propose adding a new option:
```js
module.exports = {
newFeature: {
enabled: true
}
}
```
validations:
required: true
- type: textarea
attributes:
label: Alternatives Considered
description: What other solutions have you considered?
placeholder: |
- Using plugin X, but it doesn't support Y
- Writing custom loader, but it's too complex
- Current workaround using...
validations:
required: false
- type: textarea
attributes:
label: Use Cases
description: Provide specific examples of how this feature would be used
placeholder: |
This would be useful for:
- Projects that need to...
- When building applications with...
- Teams that want to...
validations:
required: true

70
.github/DISCUSSION_TEMPLATE/q-a.yml vendored Normal file
View File

@ -0,0 +1,70 @@
labels: ["help wanted"]
body:
- type: markdown
attributes:
value: |
Need help with webpack? You're in the right place! Before asking:
- Check the [webpack documentation](https://webpack.js.org)
- Search existing [discussions](https://github.com/webpack/webpack/discussions)
- Search existing [issues](https://github.com/webpack/webpack/issues)
- type: textarea
attributes:
label: What do you need help with?
description: Describe your problem or question clearly
placeholder: I'm trying to configure webpack to do X, but I'm getting Y instead...
validations:
required: true
- type: textarea
attributes:
label: Your webpack configuration
description: Share your webpack.config.js or relevant configuration
render: js
placeholder: |
module.exports = {
entry: './src/index.js',
output: {
filename: 'bundle.js'
}
}
validations:
required: false
- type: textarea
attributes:
label: Error logs
description: If you're getting errors, paste them here
render: shell
placeholder: |
ERROR in ./src/index.js
Module not found: Error: Can't resolve...
validations:
required: false
- type: input
attributes:
label: Repository
description: Link to a minimal reproduction helps us help you faster
placeholder: https://github.com/username/webpack-issue
validations:
required: false
- type: textarea
attributes:
label: What have you tried?
description: List any solutions you've already attempted
placeholder: |
- I tried adding X to my config
- I searched for similar issues and found...
- I read the documentation about Y
validations:
required: false
- type: input
attributes:
label: webpack version
description: What version of webpack are you using?
placeholder: "5.89.0"
validations:
required: true

View File

@ -1,24 +0,0 @@
<!-- Please don't delete this template or we'll close your issue -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->
<!-- Also consider trying the webpack@beta version, maybe it's already fixed. -->
**Do you want to request a _feature_ or report a _bug_?**
<!-- Please ask questions on StackOverflow or the GitHub Discussions. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- Issues which contain questions or support requests will be closed. -->
**What is the current behavior?**
**If the current behavior is a bug, please provide the steps to reproduce.**
<!-- A great way to do this is to provide your configuration via a GitHub gist. -->
<!-- Best provide a minimal reproducible repo -->
<!-- If your issue is caused by a plugin or loader file the issue on the plugin/loader repo -->
**What is the expected behavior?**
**If this is a feature request, what is motivation or use case for changing the behavior?**
**Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.**

View File

@ -1,36 +0,0 @@
---
name: Bug report
about: Create a report to help us improve
---
<!-- Please don't delete this template because we'll close your issue -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->
# Bug report
<!-- Please ask questions on StackOverflow or the GitHub Discussions. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- Issues which contain questions or support requests will be closed. -->
**What is the current behavior?**
**If the current behavior is a bug, please provide the steps to reproduce.**
<!-- A great way to do this is to provide your configuration via a GitHub repository -->
<!-- The most helpful is a minimal reproduction with instructions on how to reproduce -->
<!-- Repositories with too many files or large `webpack.config.js` files are not suitable -->
<!-- Please only add small code snippets directly into this issue -->
<!-- https://gist.github.com is a good place for longer code snippets -->
<!-- If your issue is caused by a plugin or loader, please create an issue on the loader/plugin repository instead -->
**What is the expected behavior?**
<!-- "It should work" is not a helpful explanation -->
<!-- Explain exactly how it should behave -->
**Other relevant information:**
webpack version:
Node.js version:
Operating System:
Additional tools:

View File

@ -1,23 +0,0 @@
---
name: Feature request
about: Suggest an idea for this project
---
<!-- Please don't delete this template or we'll close your issue -->
## Feature request
<!-- Issues that contain questions or support requests will be closed. -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->
<!-- Check if this feature needs to be implemented in a plugin or loader instead -->
<!-- If yes: file the issue on the plugin/loader repo -->
<!-- Features related to the development server should be filed on this repo instead -->
**What is the expected behavior?**
**What is motivation or use case for adding/changing the behavior?**
**How should this be implemented in your opinion?**
**Are you willing to work on this yourself?**
yes

View File

@ -1,10 +0,0 @@
---
name: Other
about: Something else
---
<!-- Bug reports and Feature requests must use other templates, or will be closed -->
<!-- Please ask questions on StackOverflow or the GitHub Discussions. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

128
.github/ISSUE_TEMPLATE/bug-report.yml vendored Normal file
View File

@ -0,0 +1,128 @@
name: Bug Report
description: Report a bug in webpack
labels: ["type: bug"]
body:
- type: markdown
attributes:
value: |
Thank you for reporting a bug! Before submitting:
- Search [existing issues](https://github.com/webpack/webpack/issues) to avoid duplicates
- Try the latest version of webpack
- For help with your project, use [Discussions](https://github.com/webpack/webpack/discussions)
⚠️ **Important**: Issues that cannot be reproduced or contain vague information will be closed. If you need help debugging your specific setup, please use [Discussions](https://github.com/webpack/webpack/discussions/new?category=q-a) instead.
- type: textarea
id: description
attributes:
label: Bug Description
description: A clear and concise description of what the bug is
placeholder: When I do X, Y happens instead of Z
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: Link to Minimal Reproduction
description: |
Please provide a minimal reproduction using:
- GitHub repository with minimal webpack.config.js
**If a minimal reproduction is difficult** (e.g., performance issues in large projects with thousands of files):
- Describe your project structure in detail
- Include your full webpack configuration
- Provide specific metrics (build times, memory usage, file counts)
placeholder: |
https://github.com/user/webpack-repro
OR for complex cases:
- Build takes 30+ minutes
- Issue only appears with specific combinations of loaders/plugins
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to Reproduce
description: Clear steps to reproduce the behavior
placeholder: |
1. Run 'npm install'
2. Run 'npm run build'
3. See error in console
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected Behavior
description: What you expected to happen
validations:
required: true
- type: textarea
id: actual
attributes:
label: Actual Behavior
description: What actually happened
validations:
required: true
- type: textarea
id: environment
attributes:
label: Environment
description: |
Please run `npx webpack info` and paste the output here
render: shell
placeholder: |
System:
OS: macOS 14.0.0
CPU: (12) arm64 Apple M1
Memory: 16.00 GB
Binaries:
Node: 22.17.0
npm: 10.0.0
Packages:
webpack: 5.100.0
validations:
required: true
- type: dropdown
id: regression
attributes:
label: Is this a regression?
description: Did this work in a previous version of webpack?
options:
- "No"
- "Yes (please specify version below)"
validations:
required: true
- type: input
id: regression-version
attributes:
label: Last Working Version
description: If regression, which version worked?
placeholder: "v5.99.9"
- type: textarea
id: additional
attributes:
label: Additional Context
description: Any other context about the problem (error logs, workarounds, etc.)
- type: checkboxes
id: terms
attributes:
label: Validations
description: Before submitting, please confirm
options:
- label: I have searched for existing issues
required: true
- label: I have tested with the latest version of webpack
required: true
- label: I have provided a minimal reproduction
required: true

8
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Feature Request
url: https://github.com/webpack/webpack/discussions/new?category=ideas
about: Request new features or suggest improvements
- name: Ask for Help
url: https://github.com/webpack/webpack/discussions/new?category=q-a
about: Ask questions and get help from the community