From 20afd12c3ba39732b08f1ddbc49f26a56121d5f9 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 2 Jul 2022 17:06:56 -0700 Subject: [PATCH] Use GitHub issue forms Close #2323 --- .github/ISSUE_TEMPLATE/bug.md | 52 ------------------------------ .github/ISSUE_TEMPLATE/bug.yml | 44 +++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 1 + .github/ISSUE_TEMPLATE/feature.md | 17 ---------- .github/ISSUE_TEMPLATE/feature.yml | 21 ++++++++++++ 5 files changed, 66 insertions(+), 69 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug.md create mode 100644 .github/ISSUE_TEMPLATE/bug.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/ISSUE_TEMPLATE/feature.md create mode 100644 .github/ISSUE_TEMPLATE/feature.yml diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md deleted file mode 100644 index 44ddaf93..00000000 --- a/.github/ISSUE_TEMPLATE/bug.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -name: "\U0001F41B Bug report" -about: "If something isn't working as expected \U0001F914" - ---- - - - -**The problem** - - -**How to reproduce** - -Simplified test case: - -Steps to reproduce: -1. -2. -3. - -**Expected behavior** - - -**Environment (include versions). Did this work in previous versions?** - -* React Native for Web (version): TBC -* React (version): TBC -* Browser: TBC - - diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 00000000..5bff8e3e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,44 @@ +name: Bug report +description: File a bug report +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + Thank you for reporting an issue! Create a test case for your issue by forking this template https://codesandbox.io/s/6lx6ql1w5r + - type: checkboxes + attributes: + label: Is there an existing issue for this? + description: Please search to see if an issue already exists for the bug you encountered. + options: + - label: I have searched the existing issues + required: true + - type: textarea + attributes: + label: Describe the issue + description: A concise description of what you're experiencing. Providing screenshots is also helpful. + validations: + required: true + - type: textarea + attributes: + label: Expected behavior + description: A concise description of what you expected to happen. + validations: + required: true + - type: textarea + attributes: + label: Steps to reproduce + description: Steps to reproduce the behavior. + placeholder: | + Mention package versions and environment (browser, etc)... + 1. ... + 2. ... + validations: + required: true + - type: input + attributes: + label: Test case + description: Please provide a link to a test case reproducing the issue + placeholder: "https://codesandbox.io/s/6lx6ql1w5r" + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000..3ba13e0c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/feature.md b/.github/ISSUE_TEMPLATE/feature.md deleted file mode 100644 index 6daebd7b..00000000 --- a/.github/ISSUE_TEMPLATE/feature.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: "\U0001F680 Feature request" -about: If you have a suggestion - ---- - -**Is your feature request related to a problem? Please describe.** - - -**Describe a solution you'd like** - - -**Describe alternatives you've considered** - - -**Additional context** - diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml new file mode 100644 index 00000000..78e829a4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -0,0 +1,21 @@ +name: Feature request +description: If you have a suggestion… +labels: ["enhancement"] +body: + - type: markdown + attributes: + value: | + Thank you for reporting suggesting a feature! + - type: checkboxes + attributes: + label: Is there an existing request? + description: Please search open and closed issues to see if this request has already been made. + options: + - label: I have searched for this request + required: true + - type: textarea + attributes: + label: Describe the feature request + description: A concise description of the request, potential solutions, and addtional context. + validations: + required: true