Skip to content

Commit

Permalink
fix(changelog): github issue and commit markdown URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
zbindenren committed Jan 5, 2021
1 parent 259719a commit cdeb353
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/changelog/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (c Changelog) issueURL(issueNumber int) string {
issuesPath = githubIssuesPath
)

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

s.WriteRune('[')
Expand All @@ -156,14 +156,14 @@ func (c Changelog) revisionURL(revision string) string {
commitPath = githubCommitPath
)

url := path.Join(githubURL, c.cfg.GithubProjectPath, commitPath) + "/"
url := githubURL + path.Join("/", c.cfg.GithubProjectPath, commitPath) + "/"

s.WriteRune('[')
s.WriteString(revision[:8])
s.WriteRune(']')
s.WriteRune('(')
s.WriteString(url)
s.WriteString(revision)
s.WriteString(revision[:8])
s.WriteRune(')')

return s.String()
Expand Down

0 comments on commit cdeb353

Please sign in to comment.