diff --git a/src/Changelog.php b/src/Changelog.php index 01cb943..d8e561e 100644 --- a/src/Changelog.php +++ b/src/Changelog.php @@ -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})"; } } }