Discard empty labels
Paweł Krupa committed
Dec 18, 2018 at 02:01 UTC
02e81b137241cf0e253ec996a299ef6f4faf4a18
1 file changed
+1
-1
.travis/labeler.sh
+1
-1
@@ -8,7 +8,7 @@ new_labels() {
8
ISSUE="$1"
9
URL="https://api.github.com/repos/netdata/netdata/issues/$ISSUE/labels"
10
# deduplicate array and add quotes
11
- SET=( $(for i in "${@:2}"; do echo "\"$i\""; done | sort -u) )
11
+ SET=( $(for i in "${@:2}"; do [ "$i" != "" ] && echo "\"$i\""; done | sort -u) )
12
# implode array to string
13
LABELS="${SET[*]}"
14
# add commas between quotes (replace spaces)