Skip to content

Commit 14f9f28

Browse files
authored
feat: add bug issue template, and config (#7)
* feat: add bug issue template, and config * fixup! feat: add bug issue template, and config * fixup! feat: add bug issue template, and config
1 parent 674753a commit 14f9f28

File tree

5 files changed

+112
-0
lines changed

5 files changed

+112
-0
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
description: File a bug/issue
4+
title: "[BUG] <title>"
5+
labels: [Bug, Needs Triage]
6+
body:
7+
- type: checkboxes
8+
attributes:
9+
label: Is there an existing issue for this?
10+
description: Please [search here](./issues) to see if an issue already exists for your problem.
11+
options:
12+
- label: I have searched the existing issues
13+
required: true
14+
- type: textarea
15+
attributes:
16+
label: Current Behavior
17+
description: A clear & concise description of what you're experiencing.
18+
validations:
19+
required: false
20+
- type: textarea
21+
attributes:
22+
label: Expected Behavior
23+
description: A clear & concise description of what you expected to happen.
24+
validations:
25+
required: false
26+
- type: textarea
27+
attributes:
28+
label: Steps To Reproduce
29+
description: Steps to reproduce the behavior.
30+
value: |
31+
1. In this environment...
32+
2. With this config...
33+
3. Run '...'
34+
4. See error...
35+
validations:
36+
required: false
37+
- type: textarea
38+
attributes:
39+
label: Environment
40+
description: |
41+
examples:
42+
- **npm**: 7.6.3
43+
- **Node**: 13.14.0
44+
- **OS**: Ubuntu 20.04
45+
- **platform**: Macbook Pro
46+
value: |
47+
- OS:
48+
- Node:
49+
- npm:
50+
validations:
51+
required: false
52+

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
blank_issues_enabled: true

lib/content/bug.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
description: File a bug/issue
4+
title: "[BUG] <title>"
5+
labels: [Bug, Needs Triage]
6+
body:
7+
- type: checkboxes
8+
attributes:
9+
label: Is there an existing issue for this?
10+
description: Please [search here](./issues) to see if an issue already exists for your problem.
11+
options:
12+
- label: I have searched the existing issues
13+
required: true
14+
- type: textarea
15+
attributes:
16+
label: Current Behavior
17+
description: A clear & concise description of what you're experiencing.
18+
validations:
19+
required: false
20+
- type: textarea
21+
attributes:
22+
label: Expected Behavior
23+
description: A clear & concise description of what you expected to happen.
24+
validations:
25+
required: false
26+
- type: textarea
27+
attributes:
28+
label: Steps To Reproduce
29+
description: Steps to reproduce the behavior.
30+
value: |
31+
1. In this environment...
32+
2. With this config...
33+
3. Run '...'
34+
4. See error...
35+
validations:
36+
required: false
37+
- type: textarea
38+
attributes:
39+
label: Environment
40+
description: |
41+
examples:
42+
- **npm**: 7.6.3
43+
- **Node**: 13.14.0
44+
- **OS**: Ubuntu 20.04
45+
- **platform**: Macbook Pro
46+
value: |
47+
- OS:
48+
- Node:
49+
- npm:
50+
validations:
51+
required: false
52+

lib/content/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
blank_issues_enabled: true

lib/content/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ const fs = require('@npmcli/fs')
66
const content = {
77
'.eslintrc.js': './eslintrc.js',
88
'.github/workflows/ci.yml': './ci.yml',
9+
'.github/ISSUE_TEMPLATE/bug.yml': './bug.yml',
10+
'.github/ISSUE_TEMPLATE/config.yml': './config.yml',
911
'.gitignore': './gitignore',
1012
'LICENSE.md': './LICENSE.md',
1113
}

0 commit comments

Comments
 (0)