From 8c4b31b99bb53e940cd6e51d307c0f5fcb401aa1 Mon Sep 17 00:00:00 2001 From: Tung Bui Date: Sat, 16 Mar 2024 11:32:29 +0700 Subject: [PATCH 1/3] ci/bug: fix the label format --- .github/workflows/auto-labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml index 26541cb..e1ef6a7 100644 --- a/.github/workflows/auto-labeler.yml +++ b/.github/workflows/auto-labeler.yml @@ -48,7 +48,7 @@ jobs: parsed_labels="" for label in "${supported_labels[@]}"; do if [[ $title == *"${label}"* ]]; then - parsed_labels="${parsed_labels}${label};" + parsed_labels="${parsed_labels}${label}," echo "Added label ${label}" fi done From a3da6db9fe816084ac5e58b488c0b3493d108021 Mon Sep 17 00:00:00 2001 From: Tung Bui Date: Sat, 16 Mar 2024 11:34:02 +0700 Subject: [PATCH 2/3] ci/bug: fix the label format --- .github/workflows/auto-labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml index e1ef6a7..c03e3e4 100644 --- a/.github/workflows/auto-labeler.yml +++ b/.github/workflows/auto-labeler.yml @@ -48,7 +48,7 @@ jobs: parsed_labels="" for label in "${supported_labels[@]}"; do if [[ $title == *"${label}"* ]]; then - parsed_labels="${parsed_labels}${label}," + parsed_labels="${parsed_labels},${label}" echo "Added label ${label}" fi done From dbd3121b8e982a664a4723e8c6991be40fd24a32 Mon Sep 17 00:00:00 2001 From: Tung Bui Date: Sat, 16 Mar 2024 11:36:28 +0700 Subject: [PATCH 3/3] ci/bug: fix the label format.v1 --- .github/workflows/auto-labeler.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml index c03e3e4..9bd6305 100644 --- a/.github/workflows/auto-labeler.yml +++ b/.github/workflows/auto-labeler.yml @@ -48,7 +48,12 @@ jobs: parsed_labels="" for label in "${supported_labels[@]}"; do if [[ $title == *"${label}"* ]]; then + if [[ $parsed_labels == "" ]]; then + # Cover init case + parsed_labels="${label}" + else parsed_labels="${parsed_labels},${label}" + fi echo "Added label ${label}" fi done