Skip to content
Snippets Groups Projects
Unverified Commit 62d64283 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix: reverse upgrades order before filtering (#6483)

parent d320573e
No related branches found
No related tags found
No related merge requests found
......@@ -118,8 +118,9 @@ export async function branchifyUpgrades(
});
const seenUpdates = {};
// Filter out duplicates
branchUpgrades[branchName] = branchUpgrades[branchName].filter(
(upgrade) => {
branchUpgrades[branchName] = branchUpgrades[branchName]
.reverse()
.filter((upgrade) => {
const {
manager,
packageFile,
......@@ -145,8 +146,8 @@ export async function branchifyUpgrades(
}
seenUpdates[upgradeKey] = newValue;
return true;
}
);
})
.reverse();
const branch = generateBranchConfig(branchUpgrades[branchName]);
branch.branchName = branchName;
branch.packageFiles = packageFiles;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment