Skip to content
Snippets Groups Projects
Commit 3b2d8d2d authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: consider newFrom when evaluating group logic

parent cb3537fe
No related branches found
No related tags found
No related merge requests found
......@@ -15,12 +15,14 @@ function generateBranchConfig(branchUpgrades) {
if (!depNames.includes(upg.depName)) {
depNames.push(upg.depName);
}
if (!newVersion.includes(upg.newVersion)) {
newVersion.push(upg.newVersion);
if (!newVersion.includes(upg.newVersion || upg.newFrom)) {
newVersion.push(upg.newVersion || upg.newFrom);
}
});
const groupEligible =
depNames.length > 1 || branchUpgrades[0].lazyGrouping === false;
depNames.length > 1 ||
newVersion.length > 1 ||
branchUpgrades[0].lazyGrouping === false;
logger.debug(`groupEligible: ${groupEligible}`);
const useGroupSettings = hasGroupName && groupEligible;
logger.debug(`useGroupSettings: ${useGroupSettings}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment