Skip to content

Commit

Permalink
Merge branch 'main' into eiriksm-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed May 18, 2023
2 parents 7effbe4 + df64745 commit 97091a7
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 @@ -1830,6 +1830,12 @@ protected function createTitle($item, $post_update_data, $security_update = fals
public function getReleaseLinks($lockdata, $package_name, $pre_update_data, $post_update_data) : array
{
$extra_info = '';
if (empty($pre_update_data->source->reference) || empty($post_update_data->source->reference)) {
throw new \Exception('No SHAs to use to compare and retrieve tags for release links');
}
if (empty($post_update_data->source->url)) {
throw new \Exception('No source URL to attempt to parse in post update data source');
}
$data = $this->getFetcher()->retrieveTagsBetweenShas($lockdata, $package_name, $pre_update_data->source->reference, $post_update_data->source->reference);
$url = $post_update_data->source->url;
$url = preg_replace('/.git$/', '', $url);
Expand Down

0 comments on commit 97091a7

Please sign in to comment.