Skip to content

Commit

Permalink
Avoid persisting can not update flag outside loop
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Feb 16, 2024
1 parent dd16114 commit 42a3524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CosyComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1329,8 +1329,8 @@ protected function handleIndividualUpdates($data, $lockdata, $cdata, $one_pr_per
$config = Config::createFromComposerData($cdata);
$can_update_beyond = $config->shouldAllowUpdatesBeyondConstraint();
$max_number_of_prs = $config->getNumberOfAllowedPrs();
$should_indicate_can_not_update_if_unupdated = false;
foreach ($data as $item) {
$should_indicate_can_not_update_if_unupdated = false;
if ($max_number_of_prs && $this->getPrCount() >= $max_number_of_prs) {
if (!in_array($item->name, $is_allowed_out_of_date_pr)) {
$this->log(sprintf('Skipping %s because the number of max concurrent PRs (%d) seems to have been reached', $item->name, $max_number_of_prs), Message::CONCURRENT_THROTTLED, [
Expand Down

0 comments on commit 42a3524

Please sign in to comment.