From 0f9afa58d5617ecef0f9159bd435798b8817c899 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 5 Jan 2022 02:05:34 -0800 Subject: [PATCH] meta: add required fields in issue templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make sure there is at least one required field in each issue template. Leave the title blank to enforce that as a required field as well. PR-URL: https://github.com/nodejs/node/pull/41378 Reviewed-By: Tobias Nießen Reviewed-By: Michaël Zasso Reviewed-By: Luigi Pinca --- .github/ISSUE_TEMPLATE/1-bug-report.yml | 2 ++ .github/ISSUE_TEMPLATE/2-feature-request.yml | 4 ++++ .github/ISSUE_TEMPLATE/3-api-ref-docs-problem.yml | 5 +++-- .github/ISSUE_TEMPLATE/4-report-a-flaky-test.yml | 1 - 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/1-bug-report.yml b/.github/ISSUE_TEMPLATE/1-bug-report.yml index 76a76dbf7727c6..07a8f075ee55c0 100644 --- a/.github/ISSUE_TEMPLATE/1-bug-report.yml +++ b/.github/ISSUE_TEMPLATE/1-bug-report.yml @@ -39,6 +39,8 @@ body: attributes: label: What do you see instead? description: If possible please provide textual output instead of screenshots. + validations: + required: true - type: textarea attributes: label: Additional information diff --git a/.github/ISSUE_TEMPLATE/2-feature-request.yml b/.github/ISSUE_TEMPLATE/2-feature-request.yml index 8610f1db06ddba..1c5c2fda14e1df 100644 --- a/.github/ISSUE_TEMPLATE/2-feature-request.yml +++ b/.github/ISSUE_TEMPLATE/2-feature-request.yml @@ -11,9 +11,13 @@ body: - type: textarea attributes: label: What is the problem this feature will solve? + validations: + required: true - type: textarea attributes: label: What is the feature you are proposing to solve the problem? + validations: + required: true - type: textarea attributes: label: What alternatives have you considered? diff --git a/.github/ISSUE_TEMPLATE/3-api-ref-docs-problem.yml b/.github/ISSUE_TEMPLATE/3-api-ref-docs-problem.yml index 8963b6b89c4621..9b3bdc35197f24 100644 --- a/.github/ISSUE_TEMPLATE/3-api-ref-docs-problem.yml +++ b/.github/ISSUE_TEMPLATE/3-api-ref-docs-problem.yml @@ -1,7 +1,6 @@ name: "\U0001F4D7 Open an issue regarding the Node.js API reference docs" description: Let us know about any problematic API reference documents labels: ["doc"] -title: 'doc: ' body: - type: markdown attributes: @@ -14,4 +13,6 @@ body: label: Affected URL(s) - type: textarea attributes: - label: Explanation of the problem + label: Description of the problem + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/4-report-a-flaky-test.yml b/.github/ISSUE_TEMPLATE/4-report-a-flaky-test.yml index 2ad659dec38917..c557accfb15b92 100644 --- a/.github/ISSUE_TEMPLATE/4-report-a-flaky-test.yml +++ b/.github/ISSUE_TEMPLATE/4-report-a-flaky-test.yml @@ -1,6 +1,5 @@ name: Report a flaky test description: Report a flaky test in our CI -title: "Investigate flaky test - " labels: ["flaky-test"] body: - type: markdown