From 55b8834e917c6f336c0bd7a203dc6dbda3bd85e1 Mon Sep 17 00:00:00 2001 From: Eric Brown Date: Mon, 28 Jun 2021 19:59:34 -0700 Subject: [PATCH] Use new issue template format (#717) This change makes use of the new issue template format. The new YAML version of the template allows for dropdowns and other form input metadata. --- .github/ISSUE_TEMPLATE/Bug_report.md | 30 --------- .github/ISSUE_TEMPLATE/bug_report.yaml | 84 ++++++++++++++++++++++++++ 2 files changed, 84 insertions(+), 30 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/Bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yaml diff --git a/.github/ISSUE_TEMPLATE/Bug_report.md b/.github/ISSUE_TEMPLATE/Bug_report.md deleted file mode 100644 index 1d9e26f36..000000000 --- a/.github/ISSUE_TEMPLATE/Bug_report.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -name: "\U0001F41B Bug report" -about: Create a report to help us improve -title: '' -labels: bug -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Bandit version** - -``` - -``` - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml new file mode 100644 index 000000000..bc715f7f5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -0,0 +1,84 @@ +name: "\U0001F41B Bug report" +about: Create a report to help us improve +title: '' +labels: bug +assignees: '' + +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! + + - type: textarea + id: describe-bug + attributes: + label: Describe the bug + description: A clear and concise description of what the bug is. + value: "" + validations: + required: true + + - type: textarea + id: what-happened + attributes: + label: To Reproduce + description: Steps to reproduce the behavior + value: | + 1. Go to '...' + 2. Click on '....' + 3. Scroll down to '....' + 4. See error" + validations: + required: true + + - type: textarea + id: expected-behavior + attributes: + label: Expected behavior + description: A clear and concise description of what you expected to happen. + value: "" + validations: + required: true + + - type: dropdown + id: bandit-version + attributes: + label: Bandit version + description: Run "bandit --version" if unsure of version number + options: + - 1.7.0 (Default) + - 1.6.3 + - 1.6.2 + - 1.6.1 + - 1.6.0 + - 1.5.1 + - 1.5.0 + - 1.4.0 + - 1.3.0 + - 0.17.0-eol + validations: + required: true + + - type: dropdown + id: python-version + attributes: + label: Python version + description: Run "bandit --version" if unsure of version number + options: + - 3.9 (Default) + - 3.8 + - 3.7 + - 3.6 + - 3.5 + validations: + required: true + + - type: textarea + id: additional-context + attributes: + label: Additional context + description: Add any other context about the problem here. + value: "" + validations: + required: true