Types/GitPub.Post.Release/get_PostBody.ps1

$hasReferences = $this.Body -match '\#\d+'

if (-not $hasReferences) { return $this.Body }

$repoRoot = $this.html_url -replace '\/releases.+$'

[Regex]::Replace($this.Body, "\#(?<i>\d+)", {
    param($match)
    "[#$($match.Groups['i'].Value)]($repoRoot/issues/$(
        $match.Groups['i'].Value
    ))"

})