From eb8ad52866665ce01468384837bbdf1b9eafe5d7 Mon Sep 17 00:00:00 2001 From: rzuckerm Date: Sat, 22 Nov 2025 15:27:09 -0600 Subject: [PATCH 1/8] Test PR --- scripts/foo.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 scripts/foo.txt diff --git a/scripts/foo.txt b/scripts/foo.txt new file mode 100644 index 000000000..e69de29bb From 4717a0c509a4fe114920d3a38e3599331bfdcfbe Mon Sep 17 00:00:00 2001 From: rzuckerm Date: Sat, 22 Nov 2025 15:42:29 -0600 Subject: [PATCH 2/8] Fix labeler setup script --- .github/labeler.yml | 347 ++++++++++++++++++++++++++++++++++++++ scripts/foo.txt | 0 scripts/set_up_labeler.py | 44 +++-- 3 files changed, 377 insertions(+), 14 deletions(-) create mode 100644 .github/labeler.yml delete mode 100644 scripts/foo.txt diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..e7c8ef5d2 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,347 @@ +enhancement: +- all: + - changed-files: + - all-globs-to-all-files: + - '**' + - base-branch: main +needs docs: +- all: + - changed-files: + - any-glob-to-any-file: + - README.md + - .github/*.md + - base-branch: main +tests: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/testinfo.yml + - base-branch: main +baklava: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/Baklava.* + - archive/*/*/baklava.* + - base-branch: main +base64 encode decode: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/Base64EncodeDecode.* + - archive/*/*/base64-encode-decode.* + - archive/*/*/base64EncodeDecode.* + - archive/*/*/base64_encode_decode.* + - base-branch: main +binary search: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/BinarySearch.* + - archive/*/*/binary-search.* + - archive/*/*/binarySearch.* + - archive/*/*/binary_search.* + - base-branch: main +bubble sort: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/BubbleSort.* + - archive/*/*/bubble-sort.* + - archive/*/*/bubbleSort.* + - archive/*/*/bubble_sort.* + - base-branch: main +capitalize: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/Capitalize.* + - archive/*/*/capitalize.* + - base-branch: main +convex hull: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/ConvexHull.* + - archive/*/*/convex-hull.* + - archive/*/*/convexHull.* + - archive/*/*/convex_hull.* + - base-branch: main +depth first search: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/DepthFirstSearch.* + - archive/*/*/depth-first-search.* + - archive/*/*/depthFirstSearch.* + - archive/*/*/depth_first_search.* + - base-branch: main +dijkstra: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/Dijkstra.* + - archive/*/*/dijkstra.* + - base-branch: main +duplicate character counter: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/DuplicateCharacterCounter.* + - archive/*/*/duplicate-character-counter.* + - archive/*/*/duplicateCharacterCounter.* + - archive/*/*/duplicate_character_counter.* + - base-branch: main +even odd: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/EvenOdd.* + - archive/*/*/even-odd.* + - archive/*/*/evenOdd.* + - archive/*/*/even_odd.* + - base-branch: main +factorial: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/Factorial.* + - archive/*/*/factorial.* + - base-branch: main +fibonacci: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/Fibonacci.* + - archive/*/*/fibonacci.* + - base-branch: main +file input output: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/FileInputOutput.* + - archive/*/*/file-input-output.* + - archive/*/*/fileInputOutput.* + - archive/*/*/file_input_output.* + - base-branch: main +fizz buzz: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/FizzBuzz.* + - archive/*/*/fizz-buzz.* + - archive/*/*/fizzBuzz.* + - archive/*/*/fizz_buzz.* + - base-branch: main +fraction math: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/FractionMath.* + - archive/*/*/fraction-math.* + - archive/*/*/fractionMath.* + - archive/*/*/fraction_math.* + - base-branch: main +hello world: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/HelloWorld.* + - archive/*/*/hello-world.* + - archive/*/*/helloWorld.* + - archive/*/*/hello_world.* + - base-branch: main +insertion sort: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/InsertionSort.* + - archive/*/*/insertion-sort.* + - archive/*/*/insertionSort.* + - archive/*/*/insertion_sort.* + - base-branch: main +job sequencing: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/JobSequencing.* + - archive/*/*/job-sequencing.* + - archive/*/*/jobSequencing.* + - archive/*/*/job_sequencing.* + - base-branch: main +josephus problem: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/JosephusProblem.* + - archive/*/*/josephus-problem.* + - archive/*/*/josephusProblem.* + - archive/*/*/josephus_problem.* + - base-branch: main +linear search: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/LinearSearch.* + - archive/*/*/linear-search.* + - archive/*/*/linearSearch.* + - archive/*/*/linear_search.* + - base-branch: main +longest common subsequence: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/LongestCommonSubsequence.* + - archive/*/*/longest-common-subsequence.* + - archive/*/*/longestCommonSubsequence.* + - archive/*/*/longest_common_subsequence.* + - base-branch: main +longest palindromic substring: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/LongestPalindromicSubstring.* + - archive/*/*/longest-palindromic-substring.* + - archive/*/*/longestPalindromicSubstring.* + - archive/*/*/longest_palindromic_substring.* + - base-branch: main +longest word: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/LongestWord.* + - archive/*/*/longest-word.* + - archive/*/*/longestWord.* + - archive/*/*/longest_word.* + - base-branch: main +maximum array rotation: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/MaximumArrayRotation.* + - archive/*/*/maximum-array-rotation.* + - archive/*/*/maximumArrayRotation.* + - archive/*/*/maximum_array_rotation.* + - base-branch: main +maximum subarray: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/MaximumSubarray.* + - archive/*/*/maximum-subarray.* + - archive/*/*/maximumSubarray.* + - archive/*/*/maximum_subarray.* + - base-branch: main +merge sort: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/MergeSort.* + - archive/*/*/merge-sort.* + - archive/*/*/mergeSort.* + - archive/*/*/merge_sort.* + - base-branch: main +minimum spanning tree: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/MinimumSpanningTree.* + - archive/*/*/minimum-spanning-tree.* + - archive/*/*/minimumSpanningTree.* + - archive/*/*/minimum_spanning_tree.* + - base-branch: main +palindromic number: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/PalindromicNumber.* + - archive/*/*/palindromic-number.* + - archive/*/*/palindromicNumber.* + - archive/*/*/palindromic_number.* + - base-branch: main +prime number: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/PrimeNumber.* + - archive/*/*/prime-number.* + - archive/*/*/primeNumber.* + - archive/*/*/prime_number.* + - base-branch: main +quick sort: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/QuickSort.* + - archive/*/*/quick-sort.* + - archive/*/*/quickSort.* + - archive/*/*/quick_sort.* + - base-branch: main +quine: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/Quine.* + - archive/*/*/quine.* + - base-branch: main +remove all whitespace: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/RemoveAllWhitespace.* + - archive/*/*/remove-all-whitespace.* + - archive/*/*/removeAllWhitespace.* + - archive/*/*/remove_all_whitespace.* + - base-branch: main +reverse string: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/ReverseString.* + - archive/*/*/reverse-string.* + - archive/*/*/reverseString.* + - archive/*/*/reverse_string.* + - base-branch: main +roman numeral: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/RomanNumeral.* + - archive/*/*/roman-numeral.* + - archive/*/*/romanNumeral.* + - archive/*/*/roman_numeral.* + - base-branch: main +rot13: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/Rot13.* + - archive/*/*/rot13.* + - base-branch: main +selection sort: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/SelectionSort.* + - archive/*/*/selection-sort.* + - archive/*/*/selectionSort.* + - archive/*/*/selection_sort.* + - base-branch: main +sleep sort: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/SleepSort.* + - archive/*/*/sleep-sort.* + - archive/*/*/sleepSort.* + - archive/*/*/sleep_sort.* + - base-branch: main +transpose matrix: +- all: + - changed-files: + - any-glob-to-any-file: + - archive/*/*/TransposeMatrix.* + - archive/*/*/transpose-matrix.* + - archive/*/*/transposeMatrix.* + - archive/*/*/transpose_matrix.* + - base-branch: main diff --git a/scripts/foo.txt b/scripts/foo.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/scripts/set_up_labeler.py b/scripts/set_up_labeler.py index 7c861f6f9..2746f7055 100644 --- a/scripts/set_up_labeler.py +++ b/scripts/set_up_labeler.py @@ -33,18 +33,30 @@ def get_labeler_config(projects: list[str]) -> dict[str, Any]: config: dict[str, Any] = { # Not just language READMEs "enhancement": [ - {"changed-files": [{"all-globs-to-all-files": ["**"]}]}, - {"base-branch": "main"}, + { + "all": [ + {"changed-files": [{"all-globs-to-all-files": ["**"]}]}, + {"base-branch": "main"}, + ] + }, ], # README.md and any Markdown file in .github directory "needs docs": [ - {"changed-files": [{"any-glob-to-any-file": ["README.md", ".github/*.md"]}]}, - {"base-branch": "main"}, + { + "all": [ + {"changed-files": [{"any-glob-to-any-file": ["README.md", ".github/*.md"]}]}, + {"base-branch": "main"}, + ] + } ], # Any language testinfo.yml files "tests": [ - {"changed-files": [{"any-glob-to-any-file": ["archive/*/*/testinfo.yml"]}]}, - {"base-branch": "main"}, + { + "all": [ + {"changed-files": [{"any-glob-to-any-file": ["archive/*/*/testinfo.yml"]}]}, + {"base-branch": "main"}, + ] + }, ], } @@ -56,17 +68,21 @@ def get_labeler_config(projects: list[str]) -> dict[str, Any]: ) config[project] = [ { - "changed-files": [ + "all": [ { - "any-glob-to-any-file": [ - f"archive/*/*/{filename}.*" for filename in filenames + "changed-files": [ + { + "any-glob-to-any-file": [ + f"archive/*/*/{filename}.*" for filename in filenames + ] + } ] - } + }, + { + "base-branch": "main", + }, ] - }, - { - "base-branch": "main", - }, + } ] return config From 2068fbf76b08373c8c9230f892b00d6b1d6c9e3d Mon Sep 17 00:00:00 2001 From: rzuckerm Date: Sat, 22 Nov 2025 15:44:48 -0600 Subject: [PATCH 3/8] Remove labeler.yml --- .github/labeler.yml | 347 -------------------------------------------- .gitignore | 3 + 2 files changed, 3 insertions(+), 347 deletions(-) delete mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index e7c8ef5d2..000000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,347 +0,0 @@ -enhancement: -- all: - - changed-files: - - all-globs-to-all-files: - - '**' - - base-branch: main -needs docs: -- all: - - changed-files: - - any-glob-to-any-file: - - README.md - - .github/*.md - - base-branch: main -tests: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/testinfo.yml - - base-branch: main -baklava: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/Baklava.* - - archive/*/*/baklava.* - - base-branch: main -base64 encode decode: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/Base64EncodeDecode.* - - archive/*/*/base64-encode-decode.* - - archive/*/*/base64EncodeDecode.* - - archive/*/*/base64_encode_decode.* - - base-branch: main -binary search: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/BinarySearch.* - - archive/*/*/binary-search.* - - archive/*/*/binarySearch.* - - archive/*/*/binary_search.* - - base-branch: main -bubble sort: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/BubbleSort.* - - archive/*/*/bubble-sort.* - - archive/*/*/bubbleSort.* - - archive/*/*/bubble_sort.* - - base-branch: main -capitalize: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/Capitalize.* - - archive/*/*/capitalize.* - - base-branch: main -convex hull: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/ConvexHull.* - - archive/*/*/convex-hull.* - - archive/*/*/convexHull.* - - archive/*/*/convex_hull.* - - base-branch: main -depth first search: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/DepthFirstSearch.* - - archive/*/*/depth-first-search.* - - archive/*/*/depthFirstSearch.* - - archive/*/*/depth_first_search.* - - base-branch: main -dijkstra: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/Dijkstra.* - - archive/*/*/dijkstra.* - - base-branch: main -duplicate character counter: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/DuplicateCharacterCounter.* - - archive/*/*/duplicate-character-counter.* - - archive/*/*/duplicateCharacterCounter.* - - archive/*/*/duplicate_character_counter.* - - base-branch: main -even odd: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/EvenOdd.* - - archive/*/*/even-odd.* - - archive/*/*/evenOdd.* - - archive/*/*/even_odd.* - - base-branch: main -factorial: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/Factorial.* - - archive/*/*/factorial.* - - base-branch: main -fibonacci: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/Fibonacci.* - - archive/*/*/fibonacci.* - - base-branch: main -file input output: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/FileInputOutput.* - - archive/*/*/file-input-output.* - - archive/*/*/fileInputOutput.* - - archive/*/*/file_input_output.* - - base-branch: main -fizz buzz: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/FizzBuzz.* - - archive/*/*/fizz-buzz.* - - archive/*/*/fizzBuzz.* - - archive/*/*/fizz_buzz.* - - base-branch: main -fraction math: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/FractionMath.* - - archive/*/*/fraction-math.* - - archive/*/*/fractionMath.* - - archive/*/*/fraction_math.* - - base-branch: main -hello world: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/HelloWorld.* - - archive/*/*/hello-world.* - - archive/*/*/helloWorld.* - - archive/*/*/hello_world.* - - base-branch: main -insertion sort: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/InsertionSort.* - - archive/*/*/insertion-sort.* - - archive/*/*/insertionSort.* - - archive/*/*/insertion_sort.* - - base-branch: main -job sequencing: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/JobSequencing.* - - archive/*/*/job-sequencing.* - - archive/*/*/jobSequencing.* - - archive/*/*/job_sequencing.* - - base-branch: main -josephus problem: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/JosephusProblem.* - - archive/*/*/josephus-problem.* - - archive/*/*/josephusProblem.* - - archive/*/*/josephus_problem.* - - base-branch: main -linear search: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/LinearSearch.* - - archive/*/*/linear-search.* - - archive/*/*/linearSearch.* - - archive/*/*/linear_search.* - - base-branch: main -longest common subsequence: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/LongestCommonSubsequence.* - - archive/*/*/longest-common-subsequence.* - - archive/*/*/longestCommonSubsequence.* - - archive/*/*/longest_common_subsequence.* - - base-branch: main -longest palindromic substring: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/LongestPalindromicSubstring.* - - archive/*/*/longest-palindromic-substring.* - - archive/*/*/longestPalindromicSubstring.* - - archive/*/*/longest_palindromic_substring.* - - base-branch: main -longest word: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/LongestWord.* - - archive/*/*/longest-word.* - - archive/*/*/longestWord.* - - archive/*/*/longest_word.* - - base-branch: main -maximum array rotation: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/MaximumArrayRotation.* - - archive/*/*/maximum-array-rotation.* - - archive/*/*/maximumArrayRotation.* - - archive/*/*/maximum_array_rotation.* - - base-branch: main -maximum subarray: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/MaximumSubarray.* - - archive/*/*/maximum-subarray.* - - archive/*/*/maximumSubarray.* - - archive/*/*/maximum_subarray.* - - base-branch: main -merge sort: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/MergeSort.* - - archive/*/*/merge-sort.* - - archive/*/*/mergeSort.* - - archive/*/*/merge_sort.* - - base-branch: main -minimum spanning tree: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/MinimumSpanningTree.* - - archive/*/*/minimum-spanning-tree.* - - archive/*/*/minimumSpanningTree.* - - archive/*/*/minimum_spanning_tree.* - - base-branch: main -palindromic number: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/PalindromicNumber.* - - archive/*/*/palindromic-number.* - - archive/*/*/palindromicNumber.* - - archive/*/*/palindromic_number.* - - base-branch: main -prime number: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/PrimeNumber.* - - archive/*/*/prime-number.* - - archive/*/*/primeNumber.* - - archive/*/*/prime_number.* - - base-branch: main -quick sort: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/QuickSort.* - - archive/*/*/quick-sort.* - - archive/*/*/quickSort.* - - archive/*/*/quick_sort.* - - base-branch: main -quine: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/Quine.* - - archive/*/*/quine.* - - base-branch: main -remove all whitespace: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/RemoveAllWhitespace.* - - archive/*/*/remove-all-whitespace.* - - archive/*/*/removeAllWhitespace.* - - archive/*/*/remove_all_whitespace.* - - base-branch: main -reverse string: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/ReverseString.* - - archive/*/*/reverse-string.* - - archive/*/*/reverseString.* - - archive/*/*/reverse_string.* - - base-branch: main -roman numeral: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/RomanNumeral.* - - archive/*/*/roman-numeral.* - - archive/*/*/romanNumeral.* - - archive/*/*/roman_numeral.* - - base-branch: main -rot13: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/Rot13.* - - archive/*/*/rot13.* - - base-branch: main -selection sort: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/SelectionSort.* - - archive/*/*/selection-sort.* - - archive/*/*/selectionSort.* - - archive/*/*/selection_sort.* - - base-branch: main -sleep sort: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/SleepSort.* - - archive/*/*/sleep-sort.* - - archive/*/*/sleepSort.* - - archive/*/*/sleep_sort.* - - base-branch: main -transpose matrix: -- all: - - changed-files: - - any-glob-to-any-file: - - archive/*/*/TransposeMatrix.* - - archive/*/*/transpose-matrix.* - - archive/*/*/transposeMatrix.* - - archive/*/*/transpose_matrix.* - - base-branch: main diff --git a/.gitignore b/.gitignore index c28e24853..8336f9755 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,9 @@ __pycache__/ venv/ generated/ +# Generate labels +.github/labeler.yml + # Object directory obj/ From 6977a9e57faa44b33468e95ead1e2fe596f1eb65 Mon Sep 17 00:00:00 2001 From: rzuckerm Date: Sat, 22 Nov 2025 15:52:02 -0600 Subject: [PATCH 4/8] Show config --- scripts/set_up_labeler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/set_up_labeler.py b/scripts/set_up_labeler.py index 2746f7055..e5e499720 100644 --- a/scripts/set_up_labeler.py +++ b/scripts/set_up_labeler.py @@ -19,6 +19,7 @@ def main(): projects = read_projects() config = get_labeler_config(projects) LABELER_CONFIG_PATH.write_text(yaml.safe_dump(config, sort_keys=False), encoding="utf-8") + print(LABELER_CONFIG_PATH.read_text(encoding="utf-8")) def read_projects() -> list[str]: From 568440accd1003ef9ec91a45d26a367ab62d130d Mon Sep 17 00:00:00 2001 From: rzuckerm Date: Sat, 22 Nov 2025 15:55:01 -0600 Subject: [PATCH 5/8] Show labeler.yml --- .github/workflows/pr-labeler.yml | 4 +++- scripts/set_up_labeler.py | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 713e8bc36..b7af8eb9b 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -38,7 +38,9 @@ jobs: run: poetry install - name: Create labels - run: poetry run python scripts/set_up_labeler.py + run: | + poetry run python scripts/set_up_labeler.py + cat .github/labeler.yml - uses: actions/labeler@v6 with: diff --git a/scripts/set_up_labeler.py b/scripts/set_up_labeler.py index e5e499720..2746f7055 100644 --- a/scripts/set_up_labeler.py +++ b/scripts/set_up_labeler.py @@ -19,7 +19,6 @@ def main(): projects = read_projects() config = get_labeler_config(projects) LABELER_CONFIG_PATH.write_text(yaml.safe_dump(config, sort_keys=False), encoding="utf-8") - print(LABELER_CONFIG_PATH.read_text(encoding="utf-8")) def read_projects() -> list[str]: From 1f1f6b944625aba81fd59201d26459dde149f635 Mon Sep 17 00:00:00 2001 From: rzuckerm Date: Sat, 22 Nov 2025 15:58:10 -0600 Subject: [PATCH 6/8] Add step to show labeler config --- .github/workflows/pr-labeler.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index b7af8eb9b..f84cdf3c9 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -38,9 +38,10 @@ jobs: run: poetry install - name: Create labels - run: | - poetry run python scripts/set_up_labeler.py - cat .github/labeler.yml + run: poetry run python scripts/set_up_labeler.py + + - name: Show labeler config + run: cat .github/labeler.yml - uses: actions/labeler@v6 with: From c29190b1439afeb0d5144c82c166adc34e92d291 Mon Sep 17 00:00:00 2001 From: rzuckerm Date: Sat, 22 Nov 2025 16:01:48 -0600 Subject: [PATCH 7/8] Add dummy file --- foo.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 foo.txt diff --git a/foo.txt b/foo.txt new file mode 100644 index 000000000..e69de29bb From 905f08017102ba2edc37ddf80140377aec3b126d Mon Sep 17 00:00:00 2001 From: rzuckerm Date: Sat, 22 Nov 2025 16:10:49 -0600 Subject: [PATCH 8/8] Delete foo.txt --- foo.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 foo.txt diff --git a/foo.txt b/foo.txt deleted file mode 100644 index e69de29bb..000000000