Skip to content

Commit 8b80516

Browse files
authored
Merge pull request #5731 from stampyzfanz/main
Add automatic labelling to issues
2 parents afb7214 + 904e91e commit 8b80516

File tree

5 files changed

+131
-97
lines changed

5 files changed

+131
-97
lines changed

.github/ISSUE_TEMPLATE/existing-feature-enhancement.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,37 @@ name: 💡 Existing Feature Enhancement
22
description: This template is for suggesting an improvement for an existing feature.
33
labels: [enhancement]
44
body:
5-
- type: textarea
6-
attributes:
7-
label: Increasing Access
8-
description: How would this new feature help [increase access](https://github.com/processing/p5.js/blob/main/contributor_docs/access.md) to p5.js? (If you're not sure, you can type "Unsure" here and let others from the community offer their thoughts.)
9-
validations:
10-
required: true
11-
- type: checkboxes
12-
id: sub-area
13-
attributes:
14-
label: Most appropriate sub-area of p5.js?
15-
description: You may select more than one.
16-
options:
17-
- label: Accessibility (Web Accessibility)
18-
- label: Build tools and processes
19-
- label: Color
20-
- label: Core/Environment/Rendering
21-
- label: Data
22-
- label: DOM
23-
- label: Events
24-
- label: Friendly error system
25-
- label: Image
26-
- label: IO (Input/Output)
27-
- label: Localization
28-
- label: Math
29-
- label: Unit Testing
30-
- label: Typography
31-
- label: Utilities
32-
- label: WebGL
33-
- label: Other (specify if possible)
34-
- type: textarea
35-
attributes:
36-
label: Feature enhancement details
37-
validations:
38-
required: true
5+
- type: textarea
6+
attributes:
7+
label: Increasing Access
8+
description: How would this new feature help [increase access](https://github.com/processing/p5.js/blob/main/contributor_docs/access.md) to p5.js? (If you're not sure, you can type "Unsure" here and let others from the community offer their thoughts.)
9+
validations:
10+
required: true
11+
- type: checkboxes
12+
id: sub-area
13+
attributes:
14+
label: Most appropriate sub-area of p5.js?
15+
description: You may select more than one.
16+
options:
17+
- label: Accessibility
18+
- label: Color
19+
- label: Core/Environment/Rendering
20+
- label: Data
21+
- label: DOM
22+
- label: Events
23+
- label: Image
24+
- label: IO
25+
- label: Math
26+
- label: Typography
27+
- label: Utilities
28+
- label: WebGL
29+
- label: Build Process
30+
- label: Unit Testing
31+
- label: Localization Tools
32+
- label: Friendly Errors
33+
- label: Other (specify if possible)
34+
- type: textarea
35+
attributes:
36+
label: Feature enhancement details
37+
validations:
38+
required: true

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,37 @@ name: 🌱 New Feature Request
22
description: This template is for requesting a new feature be added.
33
labels: [feature request]
44
body:
5-
- type: textarea
6-
attributes:
7-
label: Increasing Access
8-
description: How would this new feature help [increase access](https://github.com/processing/p5.js/blob/main/contributor_docs/access.md) to p5.js? (If you're not sure, you can type "Unsure" here and let others from the community offer their thoughts.)
9-
validations:
10-
required: true
11-
- type: checkboxes
12-
id: sub-area
13-
attributes:
14-
label: Most appropriate sub-area of p5.js?
15-
description: You may select more than one.
16-
options:
17-
- label: Accessibility (Web Accessibility)
18-
- label: Build tools and processes
19-
- label: Color
20-
- label: Core/Environment/Rendering
21-
- label: Data
22-
- label: DOM
23-
- label: Events
24-
- label: Friendly error system
25-
- label: Image
26-
- label: IO (Input/Output)
27-
- label: Localization
28-
- label: Math
29-
- label: Unit Testing
30-
- label: Typography
31-
- label: Utilities
32-
- label: WebGL
33-
- label: Other (specify if possible)
34-
- type: textarea
35-
attributes:
36-
label: Feature request details
37-
validations:
38-
required: true
5+
- type: textarea
6+
attributes:
7+
label: Increasing Access
8+
description: How would this new feature help [increase access](https://github.com/processing/p5.js/blob/main/contributor_docs/access.md) to p5.js? (If you're not sure, you can type "Unsure" here and let others from the community offer their thoughts.)
9+
validations:
10+
required: true
11+
- type: checkboxes
12+
id: sub-area
13+
attributes:
14+
label: Most appropriate sub-area of p5.js?
15+
description: You may select more than one.
16+
options:
17+
- label: Accessibility
18+
- label: Color
19+
- label: Core/Environment/Rendering
20+
- label: Data
21+
- label: DOM
22+
- label: Events
23+
- label: Image
24+
- label: IO
25+
- label: Math
26+
- label: Typography
27+
- label: Utilities
28+
- label: WebGL
29+
- label: Build Process
30+
- label: Unit Testing
31+
- label: Localization Tools
32+
- label: Friendly Errors
33+
- label: Other (specify if possible)
34+
- type: textarea
35+
attributes:
36+
label: Feature request details
37+
validations:
38+
required: true

.github/ISSUE_TEMPLATE/found-a-bug.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ body:
88
label: Most appropriate sub-area of p5.js?
99
description: You may select more than one.
1010
options:
11-
- label: Accessibility (Web Accessibility)
12-
- label: Build tools and processes
13-
- label: Color
14-
- label: Core/Environment/Rendering
15-
- label: Data
16-
- label: DOM
17-
- label: Events
18-
- label: Friendly error system
19-
- label: Image
20-
- label: IO (Input/Output)
21-
- label: Localization
22-
- label: Math
23-
- label: Unit Testing
24-
- label: Typography
25-
- label: Utilities
26-
- label: WebGL
27-
- label: Other (specify if possible)
11+
- label: Accessibility
12+
- label: Color
13+
- label: Core/Environment/Rendering
14+
- label: Data
15+
- label: DOM
16+
- label: Events
17+
- label: Image
18+
- label: IO
19+
- label: Math
20+
- label: Typography
21+
- label: Utilities
22+
- label: WebGL
23+
- label: Build Process
24+
- label: Unit Testing
25+
- label: Localization Tools
26+
- label: Friendly Errors
27+
- label: Other (specify if possible)
2828
- type: input
2929
attributes:
3030
label: p5.js version

.github/labeler.yml

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,32 @@
1-
# Number of labels to fetch (optional). Defaults to 20
2-
numLabels: 20
3-
# These labels will not be used even if the issue contains them
4-
excludeLabels:
5-
- bug
6-
- can't reproduce
7-
- known issue
8-
- more info needed
9-
- will not fix
10-
- severity:critical
11-
- severity:major
12-
- severity:minor
1+
"Area:Accessibility":
2+
- '\[X\] Accessibility'
3+
"Area:Color":
4+
- '\[X\] Color'
5+
"Area:Core":
6+
- '\[X\] Core'
7+
"Area:Data":
8+
- '\[X\] Data'
9+
"Area:DOM":
10+
- '\[X\] DOM'
11+
"Area:Events":
12+
- '\[X\] Events'
13+
"Area:Image":
14+
- '\[X\] Image'
15+
"Area:IO":
16+
- '\[X\] IO'
17+
"Area:Math":
18+
- '\[X\] Math'
19+
"Area:Typography":
20+
- '\[X\] Typography'
21+
"Area:Utilities":
22+
- '\[X\] Utilities'
23+
"Area:WebGL":
24+
- '\[X\] WebGL'
25+
"Build Process":
26+
- '\[X\] Build Process'
27+
"Unit Testing":
28+
- '\[X\] Unit Testing'
29+
"Localization":
30+
- '\[X\] Localization Tools'
31+
"Friendly Errors":
32+
- '\[X\] Friendly Errors'

.github/workflows/labeler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Issue Labeler"
2+
on:
3+
issues:
4+
types: [opened, edited]
5+
6+
jobs:
7+
triage:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: github/[email protected]
11+
with:
12+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
13+
configuration-path: .github/labeler.yml
14+
enable-versioned-regex: 0

0 commit comments

Comments
 (0)