Skip to content

Commit

Permalink
meta: add required fields in issue templates
Browse files Browse the repository at this point in the history
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: #41378
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
Trott authored and targos committed Jan 14, 2022
1 parent 16c0bea commit 0f9afa5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/1-bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/2-feature-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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?
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/3-api-ref-docs-problem.yml
Original file line number Diff line number Diff line change
@@ -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: <title>'
body:
- type: markdown
attributes:
Expand All @@ -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
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/4-report-a-flaky-test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0f9afa5

Please sign in to comment.