meta: add required fields in issue templates

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 <tniessen@tnie.de>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Rich Trott 2022-01-05 02:05:34 -08:00 committed by GitHub
parent 090cdb66c0
commit 78b3af99b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View File

@ -39,6 +39,8 @@ body:
attributes: attributes:
label: What do you see instead? label: What do you see instead?
description: If possible please provide textual output instead of screenshots. description: If possible please provide textual output instead of screenshots.
validations:
required: true
- type: textarea - type: textarea
attributes: attributes:
label: Additional information label: Additional information

View File

@ -11,9 +11,13 @@ body:
- type: textarea - type: textarea
attributes: attributes:
label: What is the problem this feature will solve? label: What is the problem this feature will solve?
validations:
required: true
- type: textarea - type: textarea
attributes: attributes:
label: What is the feature you are proposing to solve the problem? label: What is the feature you are proposing to solve the problem?
validations:
required: true
- type: textarea - type: textarea
attributes: attributes:
label: What alternatives have you considered? label: What alternatives have you considered?

View File

@ -1,7 +1,6 @@
name: "\U0001F4D7 Open an issue regarding the Node.js API reference docs" name: "\U0001F4D7 Open an issue regarding the Node.js API reference docs"
description: Let us know about any problematic API reference documents description: Let us know about any problematic API reference documents
labels: ["doc"] labels: ["doc"]
title: 'doc: <title>'
body: body:
- type: markdown - type: markdown
attributes: attributes:
@ -14,4 +13,6 @@ body:
label: Affected URL(s) label: Affected URL(s)
- type: textarea - type: textarea
attributes: attributes:
label: Explanation of the problem label: Description of the problem
validations:
required: true

View File

@ -1,6 +1,5 @@
name: Report a flaky test name: Report a flaky test
description: Report a flaky test in our CI description: Report a flaky test in our CI
title: "Investigate flaky test - "
labels: ["flaky-test"] labels: ["flaky-test"]
body: body:
- type: markdown - type: markdown