Skip to content

Commit

Permalink
Update CosyComposer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Jan 10, 2023
1 parent ad5882b commit f4fb3ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/CosyComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,13 @@ protected function handleLabels(Config $config, $pullRequest, $security_update =
if (empty($labels)) {
return;
}
$this->log("Trying to add labels to PR");
$result = $this->getPrClient()->addLabels($pullRequest, $this->slug, $labels);
if (!$result) {
$this->log("Error adding labels");
} else {
$this->log("Labels added successfully");
}
}

protected function handleAutoMerge(Config $config, $pullRequest, $security_update = false)
Expand Down

0 comments on commit f4fb3ca

Please sign in to comment.