Skip to content

Commit

Permalink
chore: correctly update missing labels issue (#33903)
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulGautamSingh authored Jan 30, 2025
1 parent 4ca76e4 commit 9338455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/find-issues-with-missing-labels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# When the repository labels are changed (i.e dropped a label, added a label, etc), you should make the same change to the lists below.
# For example, if the repository added a "type:task" type label, then add "-label:type:task" to the TYPE_LABELS_FILTER.
TYPE_LABELS_FILTER='-label:type:bug -label:type:feature -label:type:docs -label:type:refactor -label:type:help'

PRIORITY_LABELS_FILTER='-label:priority-1-critical -label:priority-2-high -label:priority-3-medium -label:priority-4-low'

Expand All @@ -14,7 +13,7 @@ REPO='renovatebot/renovate'

ISSUE_TITLE="Issues with missing labels"

for FILTER in "$TYPE_LABELS_FILTER" "$PRIORITY_LABELS_FILTER"; do
for FILTER in "$PRIORITY_LABELS_FILTER"; do
# Extract the label type from the filter
LABEL_TYPE=$(echo "$FILTER" | cut -d ':' -f 2 | cut -d '-' -f 1)

Expand All @@ -40,6 +39,7 @@ done

if [ "$HAS_ISSUES_MISSING_LABELS" = false ]; then
echo "All checked issues have labels. Exiting the action."
ISSUE_BODY="$ISSUE_BODY All checked issues are correctly labeled.\n"
exit 0
fi

Expand Down

0 comments on commit 9338455

Please sign in to comment.