Skip to content

Commit 8488b47

Browse files
committed
chore: set up GitHub templates
1 parent 3193bbd commit 8488b47

File tree

3 files changed

+191
-0
lines changed

3 files changed

+191
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
#name: 💡 Feature request
2+
#description: "Suggest an idea for this project."
3+
body:
4+
5+
- type: checkboxes
6+
id: terms
7+
attributes:
8+
label: Welcome
9+
options:
10+
- label: Yes, I've searched similar [ideas on GitHub](https://github.com/golangci/golines/discussions/categories/ideas) and didn't find any.
11+
required: true
12+
- label: I agree to follow this project's [Code of Conduct](https://github.com/golangci/golines?tab=coc-ov-file)
13+
required: true
14+
15+
- type: dropdown
16+
id: install
17+
attributes:
18+
label: How did you install golines?
19+
options:
20+
- I don't know
21+
- Official binary
22+
- Brew
23+
- MacPorts
24+
- Chocolatey
25+
- Scoop
26+
- Docker
27+
- go install
28+
- Tools pattern
29+
- go tool
30+
- AUR
31+
- Nix
32+
- Deb
33+
- RPM
34+
- Other Linux package manager
35+
- Via editor/IDE
36+
- asdf/mise-en-place
37+
- Other
38+
validations:
39+
required: true
40+
41+
- type: textarea
42+
id: problem
43+
attributes:
44+
label: Your feature request related to a problem? Please describe
45+
placeholder: "A clear and concise description of what the problem is."
46+
validations:
47+
required: true
48+
49+
- type: textarea
50+
id: solution
51+
attributes:
52+
label: Describe the solution you'd like
53+
placeholder: "A clear and concise description of what you want to happen."
54+
validations:
55+
required: true
56+
57+
- type: textarea
58+
id: alternatives
59+
attributes:
60+
label: Describe alternatives you've considered
61+
placeholder: "A clear and concise description of any alternative solutions or features you've considered."
62+
validations:
63+
required: true
64+
65+
- type: textarea
66+
id: additional
67+
attributes:
68+
label: Additional context
69+
placeholder: "Add any other context or screenshots about the feature request here."
70+
validations:
71+
required: false
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
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 [releases](https://github.com/golangci/golines/releases). Only such installations are supported.
11+
required: true
12+
- label: Yes, I've searched similar [issues on GitHub](https://github.com/golangci/golines/issues) and didn't find any.
13+
required: true
14+
- label: I agree to follow this project's [Code of Conduct](https://github.com/golangci/golines?tab=coc-ov-file)
15+
required: true
16+
17+
- type: dropdown
18+
id: install
19+
attributes:
20+
label: How did you install golines?
21+
options:
22+
- I don't know
23+
- Official binary
24+
- Brew
25+
- MacPorts
26+
- Chocolatey
27+
- Scoop
28+
- Docker
29+
- go install
30+
- Tools pattern
31+
- go tool
32+
- AUR
33+
- Nix
34+
- Deb
35+
- RPM
36+
- Other Linux package manager
37+
- Via editor/IDE
38+
- asdf/mise-en-place
39+
- Other
40+
validations:
41+
required: true
42+
43+
- type: textarea
44+
id: problem
45+
attributes:
46+
label: Description of the problem
47+
placeholder: Your problem description
48+
validations:
49+
required: true
50+
51+
- type: textarea
52+
id: version
53+
attributes:
54+
label: Version of golines
55+
value: |-
56+
<details>
57+
58+
```console
59+
$ golines --version
60+
# Paste output here
61+
```
62+
63+
</details>
64+
validations:
65+
required: true
66+
67+
- type: textarea
68+
id: go-env
69+
attributes:
70+
label: Go environment
71+
value: |-
72+
<details>
73+
74+
```console
75+
$ go version && go env
76+
# paste output here
77+
```
78+
79+
</details>
80+
validations:
81+
required: true
82+
83+
- type: textarea
84+
id: code-example
85+
attributes:
86+
label: A minimal reproducible example or link to a public repository
87+
description: if your problem is related to a private repository, a minimal reproducible example is required.
88+
value: |-
89+
<details>
90+
91+
```go
92+
// add your code here
93+
```
94+
95+
</details>
96+
validations:
97+
required: true
98+
99+
- type: checkboxes
100+
id: validation
101+
attributes:
102+
label: Validation
103+
options:
104+
- label: Yes, I've included all the information above (version, etc.).
105+
required: true
106+
107+
- type: checkboxes
108+
id: supporter
109+
attributes:
110+
label: Supporter
111+
options:
112+
- label: I am a [sponsor/backer](https://golangci-lint.run/docs/donate/)

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Feature request
4+
url: https://github.com/golangci/golines/discussions/new?category=ideas
5+
about: Suggest an idea for this project.
6+
- name: ❓ Questions
7+
url: https://github.com/golangci/golines/discussions/new?category=q-a
8+
about: If you have a question or are looking for advice, please post on our Discussions forum!

0 commit comments

Comments
 (0)