Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f7a0bd1

Browse filesBrowse files
committed
[CI] Sort packages by length to match modified package better
1 parent 5506f2a commit f7a0bd1
Copy full SHA for f7a0bd1

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed

‎.github/get-modified-packages.php

Copy file name to clipboardExpand all lines: .github/get-modified-packages.php
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
$allPackages = json_decode($_SERVER['argv'][1], true, 512, \JSON_THROW_ON_ERROR);
1313
$modifiedFiles = json_decode($_SERVER['argv'][2], true, 512, \JSON_THROW_ON_ERROR);
1414

15+
// Sort to get the longest name first (match bridge not component)
16+
usort($allPackages, function($a, $b) {
17+
return strlen($b) <=> strlen($a) ?: $a <=> $b;
18+
});
19+
1520
function isComponentBridge(string $packageDir): bool
1621
{
1722
return 0 < preg_match('@Symfony/Component/.*/Bridge/@', $packageDir);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.