diff --git a/github.go b/github.go index f6b702e..1c6cb1d 100644 --- a/github.go +++ b/github.go @@ -121,7 +121,11 @@ func (p *githubChangeProcessor) prChange(c *change, info pullRequestInfo, pr int c.Formatted = fmt.Sprintf("%s ([%s#%d](%s))", c.Title, p.linkName, pr, c.Link) releaseNote := getReleaseNote(info.Body) if releaseNote != "" { - c.Highlight = fmt.Sprintf("%s ([%s#%d](%s))", releaseNote, p.linkName, pr, c.Link) + if strings.Contains(releaseNote, c.Link) { + c.Highlight = releaseNote + } else { + c.Highlight = fmt.Sprintf("%s ([%s#%d](%s))", releaseNote, p.linkName, pr, c.Link) + } } else { c.Highlight = c.Formatted }