Skip to content

Commit

Permalink
fix(changelog): issue link URL in github markdown
Browse files Browse the repository at this point in the history
Before this fix, the issue link pointed incorrectly to `https://github.com/org/project/issues/#<issueNR>`.
Now the URL points to `https://github.com/org/project/issues/<issueNR>`
(without '#').
  • Loading branch information
zbindenren committed Jan 12, 2021
1 parent 2a2c448 commit 4df9cbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/changelog/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ func (c Changelog) issueURL(issueNumber int) string {
)

url := githubURL + path.Join("/", c.cfg.GithubProjectPath, issuesPath) + "/"
issue := fmt.Sprintf("#%d", issueNumber)
issue := fmt.Sprintf("%d", issueNumber)

s.WriteRune('[')
s.WriteRune('#')
s.WriteString(issue)
s.WriteRune(']')
s.WriteRune('(')
Expand Down

0 comments on commit 4df9cbb

Please sign in to comment.