Skip to content

Commit d59e933

Browse files
authored
Add PR labeler workflow and scripts (#5261)
1 parent e99aee1 commit d59e933

File tree

3 files changed

+417
-0
lines changed

3 files changed

+417
-0
lines changed

.github/labeler.yml

Lines changed: 306 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,306 @@
1+
enhancement:
2+
- changed-files:
3+
- all-globs-to-all-files:
4+
- '!archive/*/*/README.md'
5+
- base-branch: main
6+
needs docs:
7+
- changed-files:
8+
- any-glob-to-any-file:
9+
- README.md
10+
- .github/*.md
11+
- base-branch: main
12+
tests:
13+
- changed-files:
14+
- any-glob-to-any-file:
15+
- archive/*/*/testinfo.yml
16+
- base-branch: main
17+
baklava:
18+
- changed-files:
19+
- any-glob-to-any-file:
20+
- archive/*/*/Baklava.*
21+
- archive/*/*/baklava.*
22+
- base-branch: main
23+
base64 encode decode:
24+
- changed-files:
25+
- any-glob-to-any-file:
26+
- archive/*/*/Base64EncodeDecode.*
27+
- archive/*/*/base64-encode-decode.*
28+
- archive/*/*/base64EncodeDecode.*
29+
- archive/*/*/base64_encode_decode.*
30+
- base-branch: main
31+
binary search:
32+
- changed-files:
33+
- any-glob-to-any-file:
34+
- archive/*/*/BinarySearch.*
35+
- archive/*/*/binary-search.*
36+
- archive/*/*/binarySearch.*
37+
- archive/*/*/binary_search.*
38+
- base-branch: main
39+
bubble sort:
40+
- changed-files:
41+
- any-glob-to-any-file:
42+
- archive/*/*/BubbleSort.*
43+
- archive/*/*/bubble-sort.*
44+
- archive/*/*/bubbleSort.*
45+
- archive/*/*/bubble_sort.*
46+
- base-branch: main
47+
capitalize:
48+
- changed-files:
49+
- any-glob-to-any-file:
50+
- archive/*/*/Capitalize.*
51+
- archive/*/*/capitalize.*
52+
- base-branch: main
53+
convex hull:
54+
- changed-files:
55+
- any-glob-to-any-file:
56+
- archive/*/*/ConvexHull.*
57+
- archive/*/*/convex-hull.*
58+
- archive/*/*/convexHull.*
59+
- archive/*/*/convex_hull.*
60+
- base-branch: main
61+
depth first search:
62+
- changed-files:
63+
- any-glob-to-any-file:
64+
- archive/*/*/DepthFirstSearch.*
65+
- archive/*/*/depth-first-search.*
66+
- archive/*/*/depthFirstSearch.*
67+
- archive/*/*/depth_first_search.*
68+
- base-branch: main
69+
dijkstra:
70+
- changed-files:
71+
- any-glob-to-any-file:
72+
- archive/*/*/Dijkstra.*
73+
- archive/*/*/dijkstra.*
74+
- base-branch: main
75+
duplicate character counter:
76+
- changed-files:
77+
- any-glob-to-any-file:
78+
- archive/*/*/DuplicateCharacterCounter.*
79+
- archive/*/*/duplicate-character-counter.*
80+
- archive/*/*/duplicateCharacterCounter.*
81+
- archive/*/*/duplicate_character_counter.*
82+
- base-branch: main
83+
even odd:
84+
- changed-files:
85+
- any-glob-to-any-file:
86+
- archive/*/*/EvenOdd.*
87+
- archive/*/*/even-odd.*
88+
- archive/*/*/evenOdd.*
89+
- archive/*/*/even_odd.*
90+
- base-branch: main
91+
factorial:
92+
- changed-files:
93+
- any-glob-to-any-file:
94+
- archive/*/*/Factorial.*
95+
- archive/*/*/factorial.*
96+
- base-branch: main
97+
fibonacci:
98+
- changed-files:
99+
- any-glob-to-any-file:
100+
- archive/*/*/Fibonacci.*
101+
- archive/*/*/fibonacci.*
102+
- base-branch: main
103+
file input output:
104+
- changed-files:
105+
- any-glob-to-any-file:
106+
- archive/*/*/FileInputOutput.*
107+
- archive/*/*/file-input-output.*
108+
- archive/*/*/fileInputOutput.*
109+
- archive/*/*/file_input_output.*
110+
- base-branch: main
111+
fizz buzz:
112+
- changed-files:
113+
- any-glob-to-any-file:
114+
- archive/*/*/FizzBuzz.*
115+
- archive/*/*/fizz-buzz.*
116+
- archive/*/*/fizzBuzz.*
117+
- archive/*/*/fizz_buzz.*
118+
- base-branch: main
119+
fraction math:
120+
- changed-files:
121+
- any-glob-to-any-file:
122+
- archive/*/*/FractionMath.*
123+
- archive/*/*/fraction-math.*
124+
- archive/*/*/fractionMath.*
125+
- archive/*/*/fraction_math.*
126+
- base-branch: main
127+
hello world:
128+
- changed-files:
129+
- any-glob-to-any-file:
130+
- archive/*/*/HelloWorld.*
131+
- archive/*/*/hello-world.*
132+
- archive/*/*/helloWorld.*
133+
- archive/*/*/hello_world.*
134+
- base-branch: main
135+
insertion sort:
136+
- changed-files:
137+
- any-glob-to-any-file:
138+
- archive/*/*/InsertionSort.*
139+
- archive/*/*/insertion-sort.*
140+
- archive/*/*/insertionSort.*
141+
- archive/*/*/insertion_sort.*
142+
- base-branch: main
143+
job sequencing:
144+
- changed-files:
145+
- any-glob-to-any-file:
146+
- archive/*/*/JobSequencing.*
147+
- archive/*/*/job-sequencing.*
148+
- archive/*/*/jobSequencing.*
149+
- archive/*/*/job_sequencing.*
150+
- base-branch: main
151+
josephus problem:
152+
- changed-files:
153+
- any-glob-to-any-file:
154+
- archive/*/*/JosephusProblem.*
155+
- archive/*/*/josephus-problem.*
156+
- archive/*/*/josephusProblem.*
157+
- archive/*/*/josephus_problem.*
158+
- base-branch: main
159+
linear search:
160+
- changed-files:
161+
- any-glob-to-any-file:
162+
- archive/*/*/LinearSearch.*
163+
- archive/*/*/linear-search.*
164+
- archive/*/*/linearSearch.*
165+
- archive/*/*/linear_search.*
166+
- base-branch: main
167+
longest common subsequence:
168+
- changed-files:
169+
- any-glob-to-any-file:
170+
- archive/*/*/LongestCommonSubsequence.*
171+
- archive/*/*/longest-common-subsequence.*
172+
- archive/*/*/longestCommonSubsequence.*
173+
- archive/*/*/longest_common_subsequence.*
174+
- base-branch: main
175+
longest palindromic substring:
176+
- changed-files:
177+
- any-glob-to-any-file:
178+
- archive/*/*/LongestPalindromicSubstring.*
179+
- archive/*/*/longest-palindromic-substring.*
180+
- archive/*/*/longestPalindromicSubstring.*
181+
- archive/*/*/longest_palindromic_substring.*
182+
- base-branch: main
183+
longest word:
184+
- changed-files:
185+
- any-glob-to-any-file:
186+
- archive/*/*/LongestWord.*
187+
- archive/*/*/longest-word.*
188+
- archive/*/*/longestWord.*
189+
- archive/*/*/longest_word.*
190+
- base-branch: main
191+
maximum array rotation:
192+
- changed-files:
193+
- any-glob-to-any-file:
194+
- archive/*/*/MaximumArrayRotation.*
195+
- archive/*/*/maximum-array-rotation.*
196+
- archive/*/*/maximumArrayRotation.*
197+
- archive/*/*/maximum_array_rotation.*
198+
- base-branch: main
199+
maximum subarray:
200+
- changed-files:
201+
- any-glob-to-any-file:
202+
- archive/*/*/MaximumSubarray.*
203+
- archive/*/*/maximum-subarray.*
204+
- archive/*/*/maximumSubarray.*
205+
- archive/*/*/maximum_subarray.*
206+
- base-branch: main
207+
merge sort:
208+
- changed-files:
209+
- any-glob-to-any-file:
210+
- archive/*/*/MergeSort.*
211+
- archive/*/*/merge-sort.*
212+
- archive/*/*/mergeSort.*
213+
- archive/*/*/merge_sort.*
214+
- base-branch: main
215+
minimum spanning tree:
216+
- changed-files:
217+
- any-glob-to-any-file:
218+
- archive/*/*/MinimumSpanningTree.*
219+
- archive/*/*/minimum-spanning-tree.*
220+
- archive/*/*/minimumSpanningTree.*
221+
- archive/*/*/minimum_spanning_tree.*
222+
- base-branch: main
223+
palindromic number:
224+
- changed-files:
225+
- any-glob-to-any-file:
226+
- archive/*/*/PalindromicNumber.*
227+
- archive/*/*/palindromic-number.*
228+
- archive/*/*/palindromicNumber.*
229+
- archive/*/*/palindromic_number.*
230+
- base-branch: main
231+
prime number:
232+
- changed-files:
233+
- any-glob-to-any-file:
234+
- archive/*/*/PrimeNumber.*
235+
- archive/*/*/prime-number.*
236+
- archive/*/*/primeNumber.*
237+
- archive/*/*/prime_number.*
238+
- base-branch: main
239+
quick sort:
240+
- changed-files:
241+
- any-glob-to-any-file:
242+
- archive/*/*/QuickSort.*
243+
- archive/*/*/quick-sort.*
244+
- archive/*/*/quickSort.*
245+
- archive/*/*/quick_sort.*
246+
- base-branch: main
247+
quine:
248+
- changed-files:
249+
- any-glob-to-any-file:
250+
- archive/*/*/Quine.*
251+
- archive/*/*/quine.*
252+
- base-branch: main
253+
remove all whitespace:
254+
- changed-files:
255+
- any-glob-to-any-file:
256+
- archive/*/*/RemoveAllWhitespace.*
257+
- archive/*/*/remove-all-whitespace.*
258+
- archive/*/*/removeAllWhitespace.*
259+
- archive/*/*/remove_all_whitespace.*
260+
- base-branch: main
261+
reverse string:
262+
- changed-files:
263+
- any-glob-to-any-file:
264+
- archive/*/*/ReverseString.*
265+
- archive/*/*/reverse-string.*
266+
- archive/*/*/reverseString.*
267+
- archive/*/*/reverse_string.*
268+
- base-branch: main
269+
roman numeral:
270+
- changed-files:
271+
- any-glob-to-any-file:
272+
- archive/*/*/RomanNumeral.*
273+
- archive/*/*/roman-numeral.*
274+
- archive/*/*/romanNumeral.*
275+
- archive/*/*/roman_numeral.*
276+
- base-branch: main
277+
rot13:
278+
- changed-files:
279+
- any-glob-to-any-file:
280+
- archive/*/*/Rot13.*
281+
- archive/*/*/rot13.*
282+
- base-branch: main
283+
selection sort:
284+
- changed-files:
285+
- any-glob-to-any-file:
286+
- archive/*/*/SelectionSort.*
287+
- archive/*/*/selection-sort.*
288+
- archive/*/*/selectionSort.*
289+
- archive/*/*/selection_sort.*
290+
- base-branch: main
291+
sleep sort:
292+
- changed-files:
293+
- any-glob-to-any-file:
294+
- archive/*/*/SleepSort.*
295+
- archive/*/*/sleep-sort.*
296+
- archive/*/*/sleepSort.*
297+
- archive/*/*/sleep_sort.*
298+
- base-branch: main
299+
transpose matrix:
300+
- changed-files:
301+
- any-glob-to-any-file:
302+
- archive/*/*/TransposeMatrix.*
303+
- archive/*/*/transpose-matrix.*
304+
- archive/*/*/transposeMatrix.*
305+
- archive/*/*/transpose_matrix.*
306+
- base-branch: main

.github/workflows/pr-labeler.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
pull_request_target:
4+
paths:
5+
- '!archive/*/*/*.md'
6+
7+
jobs:
8+
pr-labeler:
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
16+
- uses: actions/labeler@v6
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
sync-labels: true

0 commit comments

Comments
 (0)