Skip to content

Commit c04f92e

Browse files
Improve Issue forms (#4749)
* Improve issue forms * Improve placeholders Co-authored-by: Pierre Sassoulas <[email protected]>
1 parent e04de25 commit c04f92e

File tree

3 files changed

+45
-37
lines changed

3 files changed

+45
-37
lines changed

.github/ISSUE_TEMPLATE/BUG-REPORT.yml

Lines changed: 41 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -19,78 +19,87 @@ body:
1919
description:
2020
What is the bug about? Please provide the code that is causing the issue, and
2121
configurations used if required
22-
value: |
23-
Given a file `a.py`:
24-
25-
```python
22+
placeholder: |
2623
# Please disable message unrelated to the bug
2724
# pylint: disable=missing-docstring,
2825
<a> = b + 1
29-
```
26+
render: python
3027
validations:
3128
required: true
3229
- type: textarea
3330
id: configuration
3431
attributes:
35-
label: (Configuration)
32+
label: Configuration
3633
description:
3734
Please provide the part of the configuration that is causing the bug if required
3835
(Leave this part blank if the configuration is not relevant)
39-
value: |
40-
Using the following configuration:
41-
```ini
42-
```
36+
placeholder: |
37+
# Leave this blank if the configuration is not relevant!
38+
39+
[MASTER]
40+
load-plugins=
41+
pylint.extensions.code_style
42+
43+
[MESSAGE CONTROL]
44+
enable=
45+
useless-supression
46+
47+
# ...
48+
render: ini
49+
- type: textarea
50+
id: cmd-used
51+
attributes:
52+
label: Command used
53+
description: What was the command used to invoke pylint?
54+
placeholder: |
55+
pylint a.py
56+
render: shell
4357
validations:
44-
required: false
58+
required: true
4559
- type: textarea
4660
id: current-behavior
4761
attributes:
48-
label: Command used
49-
description: What is the command used and its actual output ?
50-
value: |
51-
Result of `pylint a.py`:
52-
```
62+
label: Pylint output
63+
description: What is the current pylint output?
64+
placeholder: |
5365
************* Module a
5466
a.py:3:1: E0001: invalid syntax (<unknown>, line 1) (syntax-error)
55-
```
67+
render: shell
5668
validations:
5769
required: true
5870
- type: textarea
5971
id: future-behavior
6072
attributes:
61-
label: (Expected behavior)
73+
label: Expected behavior
6274
description:
63-
What would you expect instead ? For example expected output or behavior
75+
What would you expect instead? For example expected output or behavior
6476
validations:
65-
required: false
77+
required: true
6678
- type: textarea
6779
id: python-interpreter
6880
attributes:
69-
label: (Version affected)
70-
description:
71-
Please copy and paste the result of 'pylint --version' or specify the range of
72-
version affected
81+
label: Pylint version
82+
description: >-
83+
Please copy and paste the result of `pylint --version` or specify the range of
84+
version affected.
7385
placeholder: |
7486
pylint 2.9.6
7587
astroid 2.6.5
76-
Python 3.8.10 (default, Jun 2 2021, 10:49:15)
77-
[GCC 9.4.0]
88+
Python 3.8.10 (default, Jun 2 2021, 10:49:15) [GCC 9.4.0]
7889
render: shell
90+
validations:
91+
required: true
7992
- type: textarea
8093
attributes:
81-
label: (OS / Environment)
94+
label: OS / Environment
8295
description: >-
8396
Provide all relevant information below, e.g. OS version, terminal etc.
8497
placeholder: Fedora 33, Cygwin, etc.
8598
- type: textarea
8699
id: additional-deps
87100
attributes:
88-
label: (Additional dependencies)
101+
label: Additional dependencies
89102
description: If applicable ie, if we can't reproduce without it
90103
placeholder: |
91-
Additional dependencies:
92-
```
93104
pandas==0.23.2
94105
marshmallow==3.10.0
95-
...
96-
```

.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ body:
3434
required: true
3535
- type: textarea
3636
attributes:
37-
label: (Additional context)
37+
label: Additional context
3838
description: >
3939
Add any other context, links, etc. about the feature here. Describe how the
4040
feature would be used, why it is needed and what it would solve.

.github/ISSUE_TEMPLATE/QUESTION.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,15 @@ body:
3434
attributes:
3535
label: Documentation for future user
3636
description:
37-
Where did you expect this information to be ? What do we need to add or what do
38-
we need to reorganize ?
37+
Where did you expect this information to be? What do we need to add or what do
38+
we need to reorganize?
3939
validations:
4040
required: true
4141
- type: textarea
4242
attributes:
43-
label: (Additional context)
43+
label: Additional context
4444
description: >
4545
Add any other context, links, etc. about the question here.
46-
4746
placeholder: >-
4847
I asked on https://stackoverflow.com/... and the community advised me to do X, Y
4948
and Z.

0 commit comments

Comments
 (0)