Skip to content

Commit 79e6549

Browse files
authored
Migrate to new labels and add automatic PR labeler (#5071)
Got kinda tired about having to manually assign labels to PRs, so this fixes that.
1 parent 1dacd48 commit 79e6549

File tree

7 files changed

+113
-10
lines changed

7 files changed

+113
-10
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: "\U0001F41B Bug report"
33
about: Create a report to help us improve
44
title: ""
5-
labels: bug
5+
type: "Bug"
66
assignees: ""
77
---
88

.github/ISSUE_TEMPLATE/custom.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
22
name: Custom
3-
about: Open an issue in the repo that is neither a bug or a feature, such a new idea
3+
about: Open an issue in the repo that is neither a bug or a feature.
44
title: ""
55
labels: ""
6+
type: ""
67
assignees: ""
78
---
89

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
name: "\U0001F680 Feature request"
33
about: Suggest a new ECMAScript feature to be implemented, or a new capability of the engine.
44
title: ""
5-
labels: enhancement
5+
type: "Feature"
6+
labels: ""
67
assignees: ""
78
---
89

.github/labeler.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
C-Actions:
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- '.github/**'
5+
6+
C-AST:
7+
- changed-files:
8+
- any-glob-to-any-file: 'core/ast/**'
9+
10+
C-Benchmark:
11+
- changed-files:
12+
- any-glob-to-any-file:
13+
- 'benches/**'
14+
- 'core/engine/benches/**'
15+
16+
C-Builtins:
17+
- changed-files:
18+
- any-glob-to-any-file:
19+
- 'core/engine/src/builtins/**'
20+
- 'core/engine/src/object/builtins/**'
21+
- all-globs-to-all-files:
22+
- '!core/engine/src/object/builtins/intl/**'
23+
24+
C-CLI:
25+
- changed-files:
26+
- any-glob-to-any-file:
27+
- 'cli/**'
28+
29+
C-Dependencies:
30+
- changed-files:
31+
- any-glob-to-any-file:
32+
- '**/Cargo.lock'
33+
- '**/Cargo.toml'
34+
35+
C-Documentation:
36+
- changed-files:
37+
- any-glob-to-any-file:
38+
- '**/*.md'
39+
40+
C-FFI:
41+
- changed-files:
42+
- any-glob-to-any-file:
43+
- 'ffi/**'
44+
45+
C-GC:
46+
- changed-files:
47+
- any-glob-to-any-file:
48+
- 'core/gc/**'
49+
50+
C-Intl:
51+
- changed-files:
52+
- any-glob-to-any-file:
53+
- 'core/engine/src/builtins/intl/**'
54+
55+
C-Javascript:
56+
- changed-files:
57+
- any-glob-to-any-file:
58+
- '**/*.js'
59+
60+
C-Parser:
61+
- changed-files:
62+
- any-glob-to-any-file:
63+
- 'core/parser/**'
64+
65+
C-Runtime:
66+
- changed-files:
67+
- any-glob-to-any-file:
68+
- 'core/runtime/**'
69+
70+
C-Tests:
71+
- changed-files:
72+
- any-glob-to-any-file:
73+
- '**/tests/**'
74+
- '**/test*'
75+
76+
C-VM:
77+
- changed-files:
78+
- any-glob-to-any-file:
79+
- 'core/engine/src/bytecompiler/**'
80+
- 'core/engine/src/vm/**'
81+
82+
C-WebAssembly:
83+
- changed-files:
84+
- any-glob-to-any-file:
85+
- 'ffi/wasm/**'

.github/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ changelog:
77
categories:
88
- title: Feature Enhancements
99
labels:
10-
- enhancement
10+
- A-Enhancement
1111
- title: Bug Fixes
1212
labels:
13-
- bug
13+
- A-Bug
14+
- title: Performance Improvements
15+
labels:
16+
- A-Performance
17+
- A-Memory
1418
- title: Internal Improvements
1519
labels:
16-
- Internal
17-
- memory
20+
- A-Internal
21+
- A-Technical Debt
1822
- title: Other Changes
1923
labels:
2024
- "*"

.github/workflows/labeler.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
labeler:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v6

.github/workflows/pr_management.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
issue_number: context.issue.number,
2121
owner: context.repo.owner,
2222
repo: context.repo.repo,
23-
labels: ['waiting-for-review']
23+
labels: ['Waiting On Review']
2424
})
2525
2626
- name: Auto Remove Label
@@ -34,10 +34,10 @@ jobs:
3434
issue_number: context.issue.number,
3535
owner: context.repo.owner,
3636
repo: context.repo.repo,
37-
name: 'waiting-for-review'
37+
name: 'Waiting On Review'
3838
});
3939
} catch (error) {
40-
console.log('Label "waiting-for-review" not found or could not be removed.');
40+
console.log('Label "Waiting On Review" not found or could not be removed.');
4141
}
4242
4343
- name: Auto Assign Milestone

0 commit comments

Comments
 (0)