Skip to content

Commit 524a018

Browse files
authored
chore: improve issue templates (#2645)
1 parent 030db8c commit 524a018

File tree

3 files changed

+75
-46
lines changed

3 files changed

+75
-46
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+44-20
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,63 @@
11
---
2-
name: Bug report
3-
about: Create a report to help us improve
2+
name: "\U0001F41E Bug report"
3+
about: Report an issue with Vite
44
title: ''
55
labels: 'bug: pending triage'
66
assignees: ''
77
---
88

9+
<!-- 中文用户请注意:请仔细阅读以下模版,如果不遵循模版,issue 将会被直接关闭。 -->
910
<!--
10-
中文用户请注意:请仔细阅读以下模版,如果不遵循模版,issue 将会被直接关闭。
11+
!!! IMPORTANT !!!
12+
Please do not ignore this template. If you do, your issue will be closed immediately.
1113
-->
1214

13-
**⚠️ IMPORTANT ⚠️ Please do not ignore this template. If you do, your issue will be closed immediately.**
15+
### Describe the bug
1416

15-
- [ ] Read [the docs](https://vitejs.dev/guide/).
16-
- [ ] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
17-
- [ ] This is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitejs/vite/discussions) or join our [Discord Chat Server](https://chat.vitejs.dev/).
17+
<!-- A clear and concise description of what the bug is. -->
18+
19+
<!-- If you intend to submit a PR for this issue, tell us in the description. Thanks! -->
20+
21+
### Reproduction
22+
23+
<!--
24+
Please provide a link to a repo that can reproduce the problem you ran into.
1825
19-
## Describe the bug
26+
A reproduction is required unless you are absolutely sure that the issue is obvious and the provided information is enough to understand the problem. If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "need reproduction" label. If no reproduction is provided after 3 days, it will be auto-closed.
27+
-->
2028

21-
A clear and concise description of what the bug is.
29+
### System Info
2230

23-
## Reproduction
31+
Output of `npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers`:
2432

25-
Please provide a link to a repo that can reproduce the problem you ran into.
33+
```node
2634

27-
A reproduction is **required** unless you are absolutely sure that the the problem is obvious and the information you provided is enough for us to understand what the problem is. If a report has only vague description (e.g. just a generic error message) and has no reproduction, it will receive "need reproduction" label. If no reproduction is provided after 3 days, it will be auto-closed.
35+
```
2836

29-
## System Info
37+
Used package manager: <!-- npm | yarn | pnpm -->
3038

31-
- `vite` version:
32-
- Operating System:
33-
- Node version:
34-
- Package manager (npm/yarn/pnpm) and version:
39+
### Logs <!-- (Optional if provided reproduction) -->
3540

36-
## Logs (Optional if provided reproduction)
41+
<!--
42+
Please try not to insert an image but copy paste the log text.
3743
38-
1. Run `vite` or `vite build` with the `--debug` flag.
39-
2. Provide the error log here.
44+
1. Run `vite` or `vite build` with the `--debug` flag.
45+
2. Provide the error log here.
46+
`node` is used as highlight to improve some colors in stack-traces.
47+
If it doesn't work quite well, try `console`.
48+
-->
49+
50+
```node
51+
52+
```
53+
54+
---
55+
56+
### Before submitting the issue, please make sure you do the following
57+
58+
- [ ] Read the [Contributing Guidelines](https://github.com/vitejs/vite/blob/main/.github/contributing.md).
59+
- [ ] Read the [docs](https://vitejs.dev/guide).
60+
- [ ] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
61+
- [ ] Provide a description in this issue that describes the bug.
62+
- [ ] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
63+
- [ ] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitejs/vite/discussions) or join our [Discord Chat Server](https://chat.vitejs.dev/).
+17-12
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
---
2-
name: Feature request
3-
about: Suggest an idea for this project
2+
name: "\U0001F680 New feature proposal"
3+
about: Propose a new feature to be added to Vite
44
title: ''
5-
labels: ''
5+
labels: 'feat: pending triage'
66
assignees: ''
7-
87
---
98

10-
**Is your feature request related to a problem? Please describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
### Clear and concise description of the problem
10+
11+
<!-- As a developer using Vite I want [goal / wish] so that [benefit]. -->
12+
13+
<!-- If you intend to submit a PR for this issue, tell us in the description. Thanks! -->
14+
15+
### Suggested solution
16+
17+
<!-- In module [xy] we could provide following implementation... -->
18+
19+
### Alternative
1220

13-
**Describe the solution you'd like**
14-
A clear and concise description of what you want to happen.
21+
<!-- Clear and concise description of any alternative solutions or features you've considered. -->
1522

16-
**Describe alternatives you've considered**
17-
A clear and concise description of any alternative solutions or features you've considered.
23+
### Additional context
1824

19-
**Additional context**
20-
Add any other context or screenshots about the feature request here.
25+
<!-- Any other context or screenshots about the feature request here. -->

.github/PULL_REQUEST_TEMPLATE.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<!-- Thank you for contributing! -->
22

3-
### Before submitting the PR, please make sure you do the following
3+
### Description
44

5-
- [ ] Read the [Contributing Guidelines](https://github.com/vitejs/vite/blob/main/.github/contributing.md).
6-
- [ ] Read the [Pull Request Guidelines](https://github.com/vitejs/vite/blob/main/.github/contributing.md#pull-request-guidelines) and follow the [Commit Convention](https://github.com/vitejs/vite/blob/main/.github/commit-convention.md).
7-
- [ ] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
8-
- [ ] Provide a description in this PR that addresses **what** the PR is solving, or reference the issue that it solves (e.g. `fixes #123`).
9-
- [ ] Ideally, include relevant tests that fail without this PR but pass with it.
5+
<!-- Please insert your description here and provide especially info about the "what" this PR is solving -->
6+
7+
### Additional context
8+
9+
<!-- e.g. is there anything you'd like reviewers to focus on? -->
10+
11+
---
1012

1113
### What is the purpose of this pull request? <!-- (put an "X" next to an item) -->
1214

@@ -15,12 +17,10 @@
1517
- [ ] Documentation update
1618
- [ ] Other
1719

18-
---
19-
20-
### Description
21-
22-
<!-- Please insert your description here and provide especially info about the "what" this PR is solving -->
23-
24-
### Additional context
20+
### Before submitting the PR, please make sure you do the following
2521

26-
<!-- e.g. is there anything you'd like reviewers to focus on? -->
22+
- [ ] Read the [Contributing Guidelines](https://github.com/vitejs/vite/blob/main/.github/contributing.md).
23+
- [ ] Read the [Pull Request Guidelines](https://github.com/vitejs/vite/blob/main/.github/contributing.md#pull-request-guidelines) and follow the [Commit Convention](https://github.com/vitejs/vite/blob/main/.github/commit-convention.md).
24+
- [ ] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
25+
- [ ] Provide a description in this PR that addresses **what** the PR is solving, or reference the issue that it solves (e.g. `fixes #123`).
26+
- [ ] Ideally, include relevant tests that fail without this PR but pass with it.

0 commit comments

Comments
 (0)