Skip to content

Commit

Permalink
Issue templates: use HTML comments (#2269)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Akarys42 committed May 29, 2021
1 parent d3670d9 commit 7f138c1
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 24 deletions.
31 changes: 21 additions & 10 deletions .github/ISSUE_TEMPLATE/bug_report.md
Expand Up @@ -6,22 +6,31 @@ labels: bug
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. Run _Black_ on it with these arguments '....'
1. See error
1. Run _Black_ on it with these arguments '...'
1. See error -->

**Expected behavior**

**Expected behavior** A clear and concise description of what you expected to happen.
<!-- A clear and concise description of what you expected to happen. -->

**Environment (please complete the following information):**

- Version: \[e.g. main\]
- OS and Python version: \[e.g. Linux/Python 3.7.4rc1\]
- Version: <!-- e.g. [main] -->
- 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
the latest main branch.
Expand All @@ -31,6 +40,8 @@ assignees: ""
- run `pip install -e .[d,python2]`;
- run `pip install -r test_requirements.txt`
- 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**

**Additional context** Add any other context about the problem here.
<!-- Add any other context about the problem here. -->
24 changes: 16 additions & 8 deletions .github/ISSUE_TEMPLATE/feature_request.md
Expand Up @@ -6,14 +6,22 @@ labels: enhancement
assignees: ""
---

**Is your feature request related to a problem? Please describe.** A clear and concise
description of what the problem is. Ex. I'm always frustrated when \[...\]
**Is your feature request related to a problem? Please describe.**

**Describe the solution you'd like** A clear and concise description of what you want to
happen.
<!-- A clear and concise description of what the problem is.
e.g. I'm always frustrated when [...] -->

**Describe alternatives you've considered** A clear and concise description of any
alternative solutions or features you've considered.
**Describe the solution you'd like**

**Additional context** Add any other context or screenshots about the feature request
here.
<!-- A clear and concise description of what you want to
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. -->
20 changes: 14 additions & 6 deletions .github/ISSUE_TEMPLATE/style_issue.md
Expand Up @@ -6,24 +6,32 @@ labels: design
assignees: ""
---

**Describe the style change** A clear and concise description of how the style can be
improved.
**Describe the style change**

**Examples in the current _Black_ style** Think of some short code snippets that show
how the current _Black_ style is not great:
<!-- A clear and concise description of how the style can be
improved. -->

**Examples in the current _Black_ style**

<!-- Think of some short code snippets that show
how the current _Black_ style is not great: -->

```python
def f():
"Make sure this code is blackened"""
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
def f(
):
pass
```

**Additional context** Add any other context about the problem here.
**Additional context**

<!-- Add any other context about the problem here. -->

0 comments on commit 7f138c1

Please sign in to comment.