Skip to content

Commit

Permalink
Update repositories.php (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Oct 12, 2024
1 parent 4e8d478 commit dcc504a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/repositories.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ function createRepositoryLabels($metadata, $options)
$labelsToUpdateObject = array();
$labelsToCreate = array_filter($labelsToCreate, function ($label) use ($existingLabels, &$labelsToUpdateObject, $style) {
$existingLabel = array_filter($existingLabels, function ($existingLabel) use ($label) {
return $existingLabel["name"] === $label["text"] || $existingLabel["name"] === $label["textWithIcon"];
return strtolower($existingLabel["name"]) === strtolower($label["text"]) ||
strtolower($existingLabel["name"]) === strtolower($label["textWithIcon"]);
});

$total = count($existingLabel);
Expand Down

0 comments on commit dcc504a

Please sign in to comment.