Skip to content

Commit

Permalink
One per package thing can switch to wrong branch
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Aug 4, 2022
1 parent c0ccb7b commit 80338b6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/CosyComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1453,12 +1453,12 @@ protected function handleIndividualUpdates($data, $lockdata, $cdata, $one_pr_per
// the version of the package will of course be an actual version instead of the version called
// "latest".
if ('dependencies' !== $item->latest && $post_update_data->version != $item->latest) {
$new_branch_name = $this->createBranchNameFromVersions(
$item->name,
$item->version,
$post_update_data->version,
$config
);
$new_item = (object) [
'name' => $item->name,
'version' => $item->version,
'latest' => $post_update_data->version,
];
$new_branch_name = $this->createBranchName($new_item, $config->shouldUseOnePullRequestPerPackage(), $config);
$is_an_actual_upgrade = Comparator::greaterThan($post_update_data->version, $item->version);
$old_item_is_branch = strpos($item->version, 'dev-') === 0;
$new_item_is_branch = strpos($post_update_data->version, 'dev-') === 0;
Expand Down

0 comments on commit 80338b6

Please sign in to comment.