Skip to content

Commit

Permalink
fix: using new reference class on changelog generation
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocesarato committed Feb 13, 2021
1 parent 61ea4da commit 03e3a2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,9 @@ protected function getMarkdownChanges(array $changes): string
$refs = $item->getReferences();
if (!empty($refs)) {
foreach ($refs as $ref) {
$refUrl = $this->getIssueUrl($ref);
$refsGroup[] = '[#' . $ref . "]({$refUrl})";
$refId = $ref->getId();
$refUrl = $this->getIssueUrl($refId);
$refsGroup[] = "[{$ref}]({$refUrl})";
}
}
}
Expand Down

0 comments on commit 03e3a2b

Please sign in to comment.