From 03e3a2bbaebd26db6fef3a7e699020c30d89511c Mon Sep 17 00:00:00 2001 From: Marco Cesarato Date: Sat, 13 Feb 2021 23:57:35 +0100 Subject: [PATCH] fix: using new reference class on changelog generation --- src/Changelog.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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})"; } } }