chore(pkg/semantic-release/changelog): get URL parameter from release-config

This commit is contained in:
Felix Wiedmann
2019-06-13 21:45:55 +02:00
parent c8a9f04f6b
commit 374548c454

View File

@@ -213,7 +213,7 @@ func (s *SemanticRelease) GetChangelog(repro, file string) error {
result := a.Analyze(commits)
c := changelog.New(s.config, a.GetRules())
_, content, err := c.GenerateChanglog(nextVersion, "https://github.com/Nightapes/go-semantic-release/commit/{{hash}}", result)
_, content, err := c.GenerateChanglog(nextVersion, s.config.GitProvider.URL+"{{hash}}", result)
if err != nil {
return err
}