From 6ff5e1de1d4a6ff350ffe0cfc0e5c43959312241 Mon Sep 17 00:00:00 2001 From: Denise Yu Date: Fri, 19 Feb 2021 16:10:33 -0500 Subject: [PATCH] Fix issue templates --- .github/ISSUE_TEMPLATE/1.bug_report.yml | 24 ++++++++++++------- .../ISSUE_TEMPLATE/2.example_bug_report.yml | 21 +++++++++++----- .github/ISSUE_TEMPLATE/3.feature_request.yml | 9 ++++--- 3 files changed, 37 insertions(+), 17 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/1.bug_report.yml b/.github/ISSUE_TEMPLATE/1.bug_report.yml index d6b3957f5a83b..6da3f732c59d8 100644 --- a/.github/ISSUE_TEMPLATE/1.bug_report.yml +++ b/.github/ISSUE_TEMPLATE/1.bug_report.yml @@ -3,65 +3,73 @@ about: Create a bug report for the Next.js core title: '' labels: 'template: bug' issue_body: true -inputs: - - type: description +body: + - type: markdown attributes: value: Thanks for taking the time to file a bug report! Please fill out this form as completely as possible. - - type: description + - type: markdown attributes: value: If you leave out sections there is a high likelihood it will be moved to the GitHub Discussions "Help" section. - - type: description + - type: markdown attributes: value: 'Please first verify if your issue exists in the Next.js canary release line: `npm install next@canary`.' - - type: description + - type: markdown attributes: value: 'next@canary is the beta version of Next.js. It includes all features and fixes that are pending to land on the stable release line.' - type: input attributes: label: What version of Next.js are you using? description: 'For example: 10.0.1' + validations: required: true - type: input attributes: label: What version of Node.js are you using? description: 'For example: 12.0.0' + validations: required: true - type: input attributes: label: What browser are you using? description: 'For example: Chrome, Safari' + validations: required: true - type: input attributes: label: What operating system are you using? description: 'For example: macOS, Windows' + validations: required: true - type: input attributes: label: How are you deploying your application? description: 'For example: next start, next export, Vercel, Other platform' + validations: required: true - type: textarea attributes: label: Describe the Bug description: A clear and concise description of what the bug is. + validations: required: true - type: textarea attributes: label: Expected Behavior description: A clear and concise description of what you expected to happen. + validations: required: true - type: textarea attributes: label: To Reproduce description: Steps to reproduce the behavior, please provide a clear code snippets that always reproduces the issue or a GitHub repository. Screenshots can be provided in the issue body below. + validations: required: true - - type: description + - type: markdown attributes: value: Before posting the issue go through the steps you've written down to make sure the steps provided are detailed and clear. - - type: description + - type: markdown attributes: value: Contributors should be able to follow the steps provided in order to reproduce the bug. - - type: description + - type: markdown attributes: value: These steps are used to add integration tests to ensure the same issue does not happen again. Thanks in advance! diff --git a/.github/ISSUE_TEMPLATE/2.example_bug_report.yml b/.github/ISSUE_TEMPLATE/2.example_bug_report.yml index 25da453dfd7a5..be3ea542b5196 100644 --- a/.github/ISSUE_TEMPLATE/2.example_bug_report.yml +++ b/.github/ISSUE_TEMPLATE/2.example_bug_report.yml @@ -3,64 +3,73 @@ about: Create a bug report for the examples title: '' labels: 'type: example,template: bug' issue_body: true -inputs: - - type: description +body: + - type: markdown attributes: value: Thanks for taking the time to file a examples bug report! Please fill out this form as completely as possible. - - type: description + - type: markdown attributes: value: If you leave out sections there is a high likelihood it will be moved to the GitHub Discussions "Help" section. - type: input attributes: label: What example does this report relate to? description: 'For example: with-styled-components' + validations: required: true - type: input attributes: label: What version of Next.js are you using? description: 'For example: 10.0.1' + validations: required: true - type: input attributes: label: What version of Node.js are you using? description: 'For example: 12.0.0' + validations: required: true - type: input attributes: label: What browser are you using? description: 'For example: Chrome, Safari' + validations: required: true - type: input attributes: label: What operating system are you using? description: 'For example: macOS, Windows' + validations: required: true - type: input attributes: label: How are you deploying your application? description: 'For example: next start, next export, Vercel, Other platform' + validations: required: true - type: textarea attributes: label: Describe the Bug description: A clear and concise description of what the bug is. + validations: required: true - type: textarea attributes: label: Expected Behavior description: A clear and concise description of what you expected to happen. + validations: required: true - type: textarea attributes: label: To Reproduce description: Steps to reproduce the behavior, please provide a clear code snippets that always reproduces the issue or a GitHub repository. Screenshots can be provided in the issue body below. + validations: required: true - - type: description + - type: markdown attributes: value: Before posting the issue go through the steps you've written down to make sure the steps provided are detailed and clear. - - type: description + - type: markdown attributes: value: Contributors should be able to follow the steps provided in order to reproduce the bug. - - type: description + - type: markdown attributes: value: Thanks in advance! diff --git a/.github/ISSUE_TEMPLATE/3.feature_request.yml b/.github/ISSUE_TEMPLATE/3.feature_request.yml index c4fbcccf7078f..8f2ee2da1fc8d 100644 --- a/.github/ISSUE_TEMPLATE/3.feature_request.yml +++ b/.github/ISSUE_TEMPLATE/3.feature_request.yml @@ -3,25 +3,28 @@ about: Create a feature request for the Next.js core title: '' labels: 'template: story' issue_body: true -inputs: - - type: description +body: + - type: markdown attributes: value: Thanks for taking the time to file a feature request! Please fill out this form as completely as possible. - - type: description + - type: markdown attributes: value: 'Feature requests will be converted to the GitHub Discussions "Ideas" section.' - type: textarea attributes: label: Describe the feature you'd like to request description: A clear and concise description of what you want and what your use case is. + validations: required: true - type: textarea attributes: label: Describe the solution you'd like description: A clear and concise description of what you want to happen. + validations: required: true - type: textarea attributes: label: Describe alternatives you've considered description: A clear and concise description of any alternative solutions or features you've considered. + validations: required: true