Skip to content

Commit 25ab9f7

Browse files
authored
docs: convert issue templates to issue forms. (#2077)
1 parent 678ae9f commit 25ab9f7

File tree

4 files changed

+141
-92
lines changed

4 files changed

+141
-92
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 72 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: Bug Report
2+
description: "Create a report to help us improve."
3+
labels: [bug]
4+
body:
5+
- type: checkboxes
6+
id: terms
7+
attributes:
8+
label: Welcome
9+
options:
10+
- label: Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported.
11+
required: true
12+
- label: Yes, I've searched similar issues on GitHub and didn't find any.
13+
required: true
14+
- label: Yes, I've included all information below (version, config, etc).
15+
required: true
16+
- label: Yes, I've tried with the standalone linter if available. (https://golangci-lint.run/usage/linters/)
17+
required: true
18+
19+
- type: textarea
20+
id: problem
21+
attributes:
22+
label: Description of the problem
23+
placeholder: Your problem description
24+
validations:
25+
required: true
26+
27+
- type: textarea
28+
id: version
29+
attributes:
30+
label: Version of golangci-lint
31+
value: |-
32+
<details>
33+
34+
```console
35+
$ golangci-lint --version
36+
# Paste output here
37+
```
38+
39+
</details>
40+
validations:
41+
required: true
42+
43+
- type: textarea
44+
id: config
45+
attributes:
46+
label: Configuration file
47+
value: |-
48+
<details>
49+
50+
```console
51+
$ cat .golangci.yml
52+
# paste output here
53+
```
54+
55+
</details>
56+
validations:
57+
required: true
58+
59+
- type: textarea
60+
id: go-env
61+
attributes:
62+
label: Go environment
63+
value: |-
64+
<details>
65+
66+
```console
67+
$ go version && go env
68+
# paste output here
69+
```
70+
71+
</details>
72+
validations:
73+
required: true
74+
75+
- type: textarea
76+
id: verbose-output
77+
attributes:
78+
label: Verbose output of running
79+
value: |-
80+
<details>
81+
82+
```console
83+
$ golangci-lint cache clean
84+
$ golangci-lint run -v
85+
# paste output here
86+
```
87+
88+
</details>
89+
validations:
90+
required: true
91+
92+
- type: textarea
93+
id: code-example
94+
attributes:
95+
label: Code example or link to a public repository
96+
value: |-
97+
<details>
98+
99+
```go
100+
// add your code here
101+
```
102+
103+
</details>
104+
validations:
105+
required: true

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Feature request
2+
description: "Suggest an idea for this project."
3+
labels: [enhancement]
4+
body:
5+
6+
- type: textarea
7+
id: problem
8+
attributes:
9+
label: your feature request related to a problem? Please describe.
10+
placeholder: "A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]"
11+
validations:
12+
required: true
13+
14+
- type: textarea
15+
id: solution
16+
attributes:
17+
label: Describe the solution you'd like.
18+
placeholder: "A clear and concise description of what you want to happen."
19+
validations:
20+
required: true
21+
22+
- type: textarea
23+
id: alternatives
24+
attributes:
25+
label: Describe alternatives you've considered.
26+
placeholder: "A clear and concise description of any alternative solutions or features you've considered."
27+
validations:
28+
required: true
29+
30+
- type: textarea
31+
id: additional
32+
attributes:
33+
label: Additional context
34+
placeholder: "Add any other context or screenshots about the feature request here."
35+
validations:
36+
required: false

0 commit comments

Comments
 (0)