Issue templates: use HTML comments (#2269)

This commit makes use of HTML comments inside GitHub issue templates
to make sure that even if they aren't removed by the issue author they won't be shown
in the rendered output.

The goal is to simply make the issues less noisy by removing template messages.
This commit is contained in:
Matteo Bertucci 2021-05-29 15:56:46 +02:00 committed by GitHub
parent d3670d9c65
commit 7f138c1130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 51 additions and 24 deletions

View File

@ -6,22 +6,31 @@ labels: bug
assignees: "" assignees: ""
--- ---
**Describe the bug** A clear and concise description of what the bug is. **Describe the bug**
**To Reproduce** Steps to reproduce the behavior: <!-- A clear and concise description of what the bug is. -->
**To Reproduce**
<!-- Steps to reproduce the behavior:
For example:
1. Take this file '...' 1. Take this file '...'
1. Run _Black_ on it with these arguments '....' 1. Run _Black_ on it with these arguments '...'
1. See error 1. See error -->
**Expected behavior** A clear and concise description of what you expected to happen. **Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->
**Environment (please complete the following information):** **Environment (please complete the following information):**
- Version: \[e.g. main\] - Version: <!-- e.g. [main] -->
- OS and Python version: \[e.g. Linux/Python 3.7.4rc1\] - OS and Python version: <!-- e.g. [Linux/Python 3.7.4rc1] -->
**Does this bug also happen on main?** To answer this, you have two options: **Does this bug also happen on main?**
<!-- To answer this, you have two options:
1. Use the online formatter at <https://black.vercel.app/?version=main>, which will use 1. Use the online formatter at <https://black.vercel.app/?version=main>, which will use
the latest main branch. the latest main branch.
@ -31,6 +40,8 @@ assignees: ""
- run `pip install -e .[d,python2]`; - run `pip install -e .[d,python2]`;
- run `pip install -r test_requirements.txt` - run `pip install -r test_requirements.txt`
- make sure it's sane by running `python -m pytest`; and - make sure it's sane by running `python -m pytest`; and
- run `black` like you did last time. - run `black` like you did last time. -->
**Additional context** Add any other context about the problem here. **Additional context**
<!-- Add any other context about the problem here. -->

View File

@ -6,14 +6,22 @@ labels: enhancement
assignees: "" assignees: ""
--- ---
**Is your feature request related to a problem? Please describe.** A clear and concise **Is your feature request related to a problem? Please describe.**
description of what the problem is. Ex. I'm always frustrated when \[...\]
**Describe the solution you'd like** A clear and concise description of what you want to <!-- A clear and concise description of what the problem is.
happen. e.g. I'm always frustrated when [...] -->
**Describe alternatives you've considered** A clear and concise description of any **Describe the solution you'd like**
alternative solutions or features you've considered.
**Additional context** Add any other context or screenshots about the feature request <!-- A clear and concise description of what you want to
here. happen. -->
**Describe alternatives you've considered**
<!-- A clear and concise description of any
alternative solutions or features you've considered. -->
**Additional context**
<!-- Add any other context or screenshots about the feature request
here. -->

View File

@ -6,11 +6,15 @@ labels: design
assignees: "" assignees: ""
--- ---
**Describe the style change** A clear and concise description of how the style can be **Describe the style change**
improved.
**Examples in the current _Black_ style** Think of some short code snippets that show <!-- A clear and concise description of how the style can be
how the current _Black_ style is not great: improved. -->
**Examples in the current _Black_ style**
<!-- Think of some short code snippets that show
how the current _Black_ style is not great: -->
```python ```python
def f(): def f():
@ -18,7 +22,9 @@ def f():
pass pass
``` ```
**Desired style** How do you think _Black_ should format the above snippets: **Desired style**
<!-- How do you think _Black_ should format the above snippets: -->
```python ```python
def f( def f(
@ -26,4 +32,6 @@ def f(
pass pass
``` ```
**Additional context** Add any other context about the problem here. **Additional context**
<!-- Add any other context about the problem here. -->