Skip to content

Commit

Permalink
FIX Handle linkfield 3.0 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Apr 9, 2024
1 parent 16c3a87 commit 2915612
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion funcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function branches(
if (isset(DO_NOT_MERGE_UP_FROM_MAJOR[$githubRepository])) {
$doNotMergeUpFromMajor = DO_NOT_MERGE_UP_FROM_MAJOR[$githubRepository];
$branches = array_filter($branches, function($branch) use ($doNotMergeUpFromMajor) {
return version_compare($branch, $doNotMergeUpFromMajor, '>');
return version_compare($branch, "$doNotMergeUpFromMajor.0", '>');
});
}

Expand Down
1 change: 1 addition & 0 deletions tests/BranchesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ public function provideBranches()
{"name": "1"},
{"name": "2"},
{"name": "3"},
{"name": "3.0"},
{"name": "4"},
{"name": "4.0"},
{"name": "5"}
Expand Down

0 comments on commit 2915612

Please sign in to comment.