Skip to content

Commit

Permalink
fix: don't require vcs url when not referenced
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Nov 10, 2023
1 parent 056498f commit fe90256
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/changelog/changelog.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ type Commit struct {
// GenerateChangelog generates a changelog from the git repository.
func GenerateChangelog(ctx context.Context, repository string, cfg Config) (string, error) {
var err error
cfg.VCSURL, err = git.GetPublicVCSURL(ctx, repository)

if strings.Contains(cfg.Template, "Config.VCSURL") {
cfg.VCSURL, err = git.GetPublicVCSURL(ctx, repository)
}

if err != nil {
return "", err
Expand Down

0 comments on commit fe90256

Please sign in to comment.