Skip to content

Commit ca31e32

Browse files
authored
Add GHA workflow with pr labeler (#3923)
1 parent 4a1e33a commit ca31e32

File tree

2 files changed

+177
-0
lines changed

2 files changed

+177
-0
lines changed

.github/labeler.yml

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
# https://github.com/actions/labeler?tab=readme-ov-file#create-githublabeleryml
2+
3+
"audio":
4+
- changed-files:
5+
- any-glob-to-any-file:
6+
- "**/Audio*"
7+
- "**/Pronunciations/**"
8+
- "**/Speaker*"
9+
10+
"backend":
11+
- changed-files:
12+
- any-glob-to-any-file:
13+
- "Backend*/**"
14+
15+
"bash":
16+
- changed-files:
17+
- any-glob-to-any-file:
18+
- "**/*.sh"
19+
20+
"component: DataEntry":
21+
- changed-files:
22+
- any-glob-to-any-file:
23+
- "**/DataEntry/**"
24+
25+
"component: TreeView":
26+
- changed-files:
27+
- any-glob-to-any-file:
28+
- "**/*emanticDomain*"
29+
- "**/semantic_domains/**"
30+
- "**/TreeView/**"
31+
32+
"dependencies":
33+
- changed-files:
34+
- any-glob-to-any-file:
35+
- "**/*.csproj"
36+
- "**/*requirements.*"
37+
- "package*.json"
38+
39+
"deployment":
40+
- changed-files:
41+
- any-glob-to-any-file:
42+
- "deploy/**"
43+
- "docs/deploy/**"
44+
- "docs/nuc_instructions_for_use/**"
45+
- "docs/release_process/**"
46+
- "installer/**"
47+
- "maintenance/**"
48+
- "nginx/**"
49+
50+
"docker":
51+
- changed-files:
52+
- any-glob-to-any-file:
53+
- "**/.dockerignore"
54+
- "**/docker_home/**"
55+
- "**/Dockerfile"
56+
57+
"documentation":
58+
- changed-files:
59+
- any-glob-to-any-file:
60+
- "**/README.*"
61+
- "docs/**"
62+
63+
"font/language":
64+
- changed-files:
65+
- any-glob-to-any-file:
66+
- "**/*dictionary*"
67+
- "**/*font*"
68+
- "**/*spellChecker*"
69+
- "**/*wordlist*"
70+
- "**/*writing-system*"
71+
- "**/*writingSystem*"
72+
- "**/dictionaries/**"
73+
74+
"frontend":
75+
- changed-files:
76+
- all-globs-to-any-file:
77+
- "public/**"
78+
- "!public/dictionaries/**"
79+
- "!public/locales/**"
80+
- all-globs-to-any-file:
81+
- "src/**"
82+
- "!src/api/**"
83+
- "!src/backend.index.ts"
84+
85+
"github_actions":
86+
- changed-files:
87+
- any-glob-to-any-file:
88+
- ".github/**"
89+
90+
"goal":
91+
- changed-files:
92+
- any-glob-to-any-file:
93+
- "**/*UserEdit*.cs"
94+
- "**/goal*.ts*"
95+
- "**/GoalTimeline/**"
96+
- all-globs-to-any-file:
97+
- "**/goals/**"
98+
- "!**/CharacterInventory/**"
99+
- "!**/MergeDuplicates/**"
100+
- "!**/ReviewDeferredDuplicates/**"
101+
- "!**/ReviewEntries/**"
102+
103+
"goal: CharacterInventory":
104+
- changed-files:
105+
- any-glob-to-any-file:
106+
- "**/CharacterInventory/**"
107+
108+
"goal: MergeDup":
109+
- changed-files:
110+
- any-glob-to-any-file:
111+
- "**/*Duplicate*.cs"
112+
- "**/*Merge*.cs"
113+
- "**/MergeDuplicates/**"
114+
- "**/ReviewDeferredDuplicates/**"
115+
116+
"goal: ReviewEntries":
117+
- changed-files:
118+
- any-glob-to-any-file:
119+
- "**/ReviewEntries/**"
120+
121+
"import/export":
122+
- changed-files:
123+
- any-glob-to-any-file:
124+
- "**/*Import*.ts*"
125+
- "**/*Lift*.cs"
126+
- "**/ProjectExport/**"
127+
128+
"login/signUp":
129+
- changed-files:
130+
- any-glob-to-any-file:
131+
- "**/*Captcha*.cs"
132+
- "**/*Password*.cs"
133+
- "**/credentials.ts"
134+
- "**/Login/**"
135+
- "**/PasswordReset/**"
136+
137+
"project":
138+
- changed-files:
139+
- any-glob-to-any-file:
140+
- "**/*Invite*.cs"
141+
- "**/*Project*.cs"
142+
- "**/*Statistics*.cs"
143+
- "**/*UserRole*.cs"
144+
- all-globs-to-any-file:
145+
- "**/Project*/**"
146+
- "!**/*Import*"
147+
- "!**/ProjectExport/**"
148+
149+
"python":
150+
- changed-files:
151+
- any-glob-to-any-file:
152+
- "**/*.py"
153+
- "**/*requirements.*"
154+
- "pyproject*"
155+
- "tox*"
156+
157+
"test":
158+
- changed-files:
159+
- any-glob-to-any-file:
160+
- "**/*Test*"
161+
- "**/*testing*"
162+
- "**/tests/**"
163+
- "Backend.Tests/**"

.github/workflows/labeler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#https://github.com/actions/labeler?tab=readme-ov-file#create-workflow
2+
3+
name: "Pull Request Labeler"
4+
on:
5+
- pull_request_target
6+
7+
jobs:
8+
labeler:
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/labeler@v5

0 commit comments

Comments
 (0)